[php-src] PR #23123: Zend: is_callable() wrongly accepts objects with no get_closure handler.
| From: | devnexen | Date: | Sat, 08 Aug 2026 04:21:59 +0000 |
| Subject: | [php-src] PR #23123: Zend: is_callable() wrongly accepts objects with no get_closure handler. | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37631@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/23123
Author: devnexen
Fix #23121
zend_is_callable_at_frame() tested
get_closure && get_closure(...) == FAILURE,
so a NULL handler short circuited past the error branch into the success path, leaving
fcc->function_handler NULL. zend_fcc_addref() then asserted and call_user_func() dereferenced the
null zend_function.