[php-src] PR #25761: Fix GH-25760: pg_fetch_all_columns() crashes with JIT when the result for an empty set is modified
| From: | thunderer | Date: | Wed, 25 Nov 2026 21:10:36 +0000 |
| Subject: | [php-src] PR #25761: Fix GH-25760: pg_fetch_all_columns() crashes with JIT when the result for an empty set is modified | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-41018@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25761
Author: thunderer
Fixes GH-25760.
Since 8f6bc97a360,
pg_fetch_all_columns() returns the shared immutable empty array for
a result without rows. The stub still declared @refcount 1, so function JIT and tracing
JIT modified that array in place and crashed.
This drops the annotation and regenerates the arginfo and optimizer info, as e43d3d10c32 did for
array_column(). The test fails without the change.