[php-src] PR #22320: zend: fix missing return in global register detection (GH-22206)
| From: | P3p111n0 | Date: | Mon, 15 Jun 2026 15:31:36 +0000 |
| Subject: | [php-src] PR #22320: zend: fix missing return in global register detection (GH-22206) | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36441@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22320
Author: P3p111n0
Hi,
this pull request add a missing return statement to zend global registers detection, fixing a build
failure with -Werror=return-type with GCC 16.
When building with -Werror=return-type, the global registers detection ends with an error, even
though global registers are supported. The preserve_none attribute is newly supported, which along
with "unsupported" global registers leads to ZEND_VM_KIND being set to
ZEND_VM_KIND_TAILCALL, which later produces the error described in the linked issue. This pull
request fixes that.