Skip to content

Conversation

iluuu1994
Copy link
Member

There's no need to call zend_is_auto_global(), which will read the uninitialized armed field. If the env is not yet initialized, we'll fall back to php_php_import_environment_variables().

See https://github.com/php/php-src/actions/runs/17815318830/job/50647381504. Exposed by GH-19833.

There's no need to call zend_is_auto_global(), which will read the uninitialized
armed field. If the env is not yet initialized, we'll fall back to
php_php_import_environment_variables().
@iluuu1994 iluuu1994 force-pushed the fix-cgi-auto_globals_jit=0 branch from 147bfc8 to 5bfb86f Compare September 18, 2025 10:06
@iluuu1994 iluuu1994 requested a review from bukka September 18, 2025 22:42
@iluuu1994
Copy link
Member Author

@bukka Also added you as a reviewer since this code is quite similar to php-fpm. So you might have the most real experience with this code. 🙂

@bukka
Copy link
Member

bukka commented Sep 19, 2025

I remember fixing something related in FPM but will need to refresh my mind and double check it. I plan to also look into those argc deprecation changes and logic around that to see if anything could be improved there. I should have a slot for this in a week starting Oct 7.

@iluuu1994
Copy link
Member Author

@bukka Thanks. This currently breaks nightly, I'd prefer not to keep it red for so long. Maybe we can merge this for master now and backport later, once you've verified?

@bukka
Copy link
Member

bukka commented Sep 19, 2025

Maybe we can merge this for master now and backport later, once you've verified?

@iluuu1994 Sounds good to me

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.

2 participants