[php-src] PR #25826: Fix GH-25825: pg_meta_data() numeric column names are not integer keys with opcache enabled

From: Date: Fri, 27 Nov 2026 08:14:46 +0000
Subject: [php-src] PR #25826: Fix GH-25825: pg_meta_data() numeric column names are not integer keys with opcache enabled
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-41098@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25826 Author: thunderer Fixes GH-25825. pg_meta_data() adds the column names with add_assoc_zval(), so numeric column names become integer keys, but the stub's @return tag allowed only string keys. The generated optimizer info therefore lacked MAY_BE_ARRAY_KEY_LONG, and opcache folded is_int() checks on the keys to false; function JIT crashed. This changes the tag to array<int|string, array>|false and regenerates the arginfo and optimizer info. The test fails without the change. When merging up, ext/pgsql/pgsql_arginfo.h conflicts on the stub hash line in PHP-8.5 and PHP-8.6; regenerating the file with build/gen_stub.php resolves it.

« previous php.git-pulls (#41098) next »