Skip to content

Fix GH-25802: pg_get_notify() result is never === false with opcache enabled - #25803

Closed
thunderer wants to merge 1 commit into
php:PHP-8.4from
thunderer:fix/pg-get-notify-false
Closed

thunderer wants to merge 1 commit into
php:PHP-8.4from
thunderer:fix/pg-get-notify-false

Conversation

@thunderer

Copy link
Copy Markdown
Contributor

Fixes GH-25802.

pg_get_notify() returns false when no notification is pending, but the @return tag in the stub omitted |false. The generated optimizer info therefore had no MAY_BE_FALSE, and opcache removed === false checks on the result, also with the JIT disabled.

This adds |false to the tag and regenerates the arginfo and optimizer info. The test fails without the change.

The merge into PHP-8.5 and PHP-8.6 conflicts only in the stub hash line of ext/pgsql/pgsql_arginfo.h; build/gen_stub.php regenerates it.

…he enabled

pg_get_notify() returns false when no notification is pending. The stub's
@return tag omitted |false, so the generated optimizer info lacked
MAY_BE_FALSE and opcache removed `=== false` checks on the result. Add
|false to the tag and regenerate.
@devnexen devnexen closed this in c87656f Nov 27, 2026
@thunderer
thunderer deleted the fix/pg-get-notify-false branch November 27, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants