[php-src] PR #23707: Add NULL check on zend_hash_index_find() return value in extract_token_id_to_replace()

From: Date: Wed, 16 Sep 2026 10:31:51 +0000
Subject: [php-src] PR #23707: Add NULL check on zend_hash_index_find() return value in extract_token_id_to_replace()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38503@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23707 Author: ushevchenko Fixes #23704 Adds a NULL check on the return value of zend_hash_index_find() in extract_token_id_to_replace() (ext/tokenizer/tokenizer.c), consistent with how this function's return value is checked at other call sites in the codebase, and consistent with how this same function already returns NULL for other malformed-input cases. See the linked issue for details — this was flagged by static analysis (statistical NULL-deref checker), not by an observed crash.

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