Repository navigation
Conversation
…keys with opcache enabled pg_meta_data() adds the column names with add_assoc_zval(), so a numeric column name becomes an integer key. The stub's @return tag allowed only string keys, so the generated optimizer info lacked MAY_BE_ARRAY_KEY_LONG and opcache folded is_int() checks on the keys to false; function JIT crashed. Allow integer keys in the tag and regenerate.
thunderer
requested review from
devnexen,
dstogov and
kocsismate
as code owners
November 27, 2026 08:14
iliaal
approved these changes
Nov 27, 2026
| } | ||
|
|
||
| $db = pg_connect($conn_str); | ||
| pg_query($db, "DROP TABLE IF EXISTS {$table}"); |
Member
There was a problem hiding this comment.
Nit: this DROP TABLE IF EXISTS duplicates --CLEAN--; drop it and leave the cleanup there.
devnexen
approved these changes
Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes GH-25825.
pg_meta_data()adds the column names withadd_assoc_zval(), so numeric column names become integer keys, but the stub's@returntag allowed only string keys. The generated optimizer info therefore lackedMAY_BE_ARRAY_KEY_LONG, and opcache foldedis_int()checks on the keys tofalse; function JIT crashed. This changes the tag toarray<int|string, array>|falseand regenerates the arginfo and optimizer info. The test fails without the change.When merging up,
ext/pgsql/pgsql_arginfo.hconflicts on the stub hash line in PHP-8.5 and PHP-8.6; regenerating the file withbuild/gen_stub.phpresolves it.