function.wincache-ucache-set fails to store array
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
wincache_ucache_set のマニュアルページと、issue に示されている PHP 8.4/IIS での再現から始めてください。配列のシリアライズが正しく文書化されているかを確認し、そのうえで、適切な対応がドキュメントの修正なのか、wincache の実装へのエスカレーションなのかを判断してください。担当と必要な変更が明確になった時点で issue は完了です。
索引モデルが issue の本文から書いたものです。
説明
From manual page: https://www.php.net/manual/en/function.wincache-ucache-set.php
I've just spent a few hours trying to debug why an IIS server with wincache is hanging, and it all came down to 1 single line
This is a test line that can hang my Wincache / PHP 8.4 / IIS setup
$test_array = ['simple_string'];
$result = wincache_ucache_set('pjs_test_queue', $test_array, $expiration);
This is an array. I have many thousands of non-array items in there and Wordpress strings/articles etc., all in the same instance. No issues at all for anything else. But, add that array, and things just halt. The call never returns. This was a simple test array I did to attempt to replicate the issue. My array was only a few elements, but slightly more complicated. If you change the array to a string in the same code for sanity check, it works fine.
Now, the docs all say it is supposed to support this and internally serialise, but, something seems wrong with my builds, or the docs are not correct?
The fix? If you manually serialize the array FIRST, so
$result = wincache_ucache_set('pjs_test_queue', serialize($test_array), $expiration);
It'll work just fine.
So, I now have a work around and I will not trust the internal serialization that is supposed to happen, but I am reporting here in case it is a general bug that needs to be fixed. Obviously, very, very simple to replicate and test. 2 lines of code.
- 主要言語
- XML
- スター
- 3
- フォーク
- 6
- 平均マージ
- 2日 16時間
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/doc-extensions のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
php/doc-extensions#23 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
php/doc-extensions#28 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
php/doc-extensions#22 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
php/doc-extensions#13 · コメント 11 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
php/doc-extensions#21 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
php/doc-extensions の issue をすべて見る
似ている issue
-
nixos/hyprland: wrapper source is a bash script and fails the ensure-wrapper-integrity ELF checkオープン0.kind: bug 6.topic: nixos
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vllm-project/vllm#61131 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kubernetes-client/python#2735 ·
メンテナーはふだん 1 日以内に返信
-
[Anon] Imperium - Adeptus Astartes - Dark Angels: Aggressors Autostorm Bolter Gauntlets Incorrectオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
GreedyBear-Project/GreedyBear#1727 ·
メンテナーはふだん 2 日以内に返信