[php-src] PR #17534: Fix may_have_extra_named_args flag for ZEND_AST_UNPACK
| From: | nielsdos | Date: | Tue, 21 Jan 2025 07:44:45 +0000 |
| Subject: | [php-src] PR #17534: Fix may_have_extra_named_args flag for ZEND_AST_UNPACK | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30463@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17534
Author: nielsdos
The check for
!fbc || (fbc->common.fn_flags & ZEND_ACC_VARIADIC) is performed
after fbc is set to NULL, so this always returns true. This results in
ZEND_FCALL_MAY_HAVE_EXTRA_NAMED_PARAMS always being set for unpack sends. Fix it by
moving the flag updates to the point before setting fbc to NULL.