Skip to content

Fix build against PHP 8.6 (INI_STR/INI_BOOL macros removed)#19

Open
andypost wants to merge 1 commit into
php:masterfrom
andypost:fix-php86-ini-macros
Open

Fix build against PHP 8.6 (INI_STR/INI_BOOL macros removed)#19
andypost wants to merge 1 commit into
php:masterfrom
andypost:fix-php86-ini-macros

Conversation

@andypost

@andypost andypost commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

PHP 8.6 removed the legacy uppercase INI_STR() and INI_BOOL() macros in favour of the lowercase zend_ini_string()/zend_ini_long() helpers, which have been available since PHP 7. Building against 8.6 therefore fails with implicit-function-declaration errors.

Add guarded fallback definitions so the extension keeps compiling on both older and newer PHP versions without touching the call sites.

Ref: php/php-src@df8ce6d

PHP 8.6 removed the legacy uppercase INI_STR() and INI_BOOL() macros in
favour of the lowercase zend_ini_string()/zend_ini_long() helpers, which
have been available since PHP 7. Building against 8.6 therefore fails with
implicit-function-declaration errors.

Add guarded fallback definitions so the extension keeps compiling on both
older and newer PHP versions without touching the call sites.

Ref: php/php-src@df8ce6d

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant