Skip to content

zend: fix missing return in global register detection (GH-22206)#22320

Merged
petk merged 1 commit into
php:PHP-8.4from
P3p111n0:PHP-8.4
Jun 17, 2026
Merged

zend: fix missing return in global register detection (GH-22206)#22320
petk merged 1 commit into
php:PHP-8.4from
P3p111n0:PHP-8.4

Conversation

@P3p111n0

@P3p111n0 P3p111n0 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

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.

@petk petk linked an issue Jun 16, 2026 that may be closed by this pull request
@petk petk merged commit b0c7865 into php:PHP-8.4 Jun 17, 2026
18 checks passed
petk added a commit that referenced this pull request Jun 17, 2026
* PHP-8.5:
  Update NEWS
  zend: fix missing return in global register detection (GH-22206) (#22320)
@petk

petk commented Jun 17, 2026

Copy link
Copy Markdown
Member

Merged to PHP-8.4 and up. Thank you @P3p111n0

pull Bot pushed a commit to wudi/php-src that referenced this pull request Jun 17, 2026
* PHP-8.4:
  Update NEWS
  zend: fix missing return in global register detection (phpGH-22206) (php#22320)
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.

FTBFS php 8.5.6 with GCC 16

2 participants