-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NULL access with preloading and INI option #18112
Comments
Needs ZTS, prolly related to the difference in construction/destruction for globals |
nielsdos
added a commit
to nielsdos/php-src
that referenced
this issue
Mar 19, 2025
Preloading shutdown calls request shutdown which will deactivate the virtual cwd state. However, further startup code still assumes the state that was set by virtual_cwd_startup(). So we need to reactivate it manually. Creating a test was a bit difficult because the INI setting I wanted to test this with is overridden by the test runner apparently. To reproduce the issue, create an empty file test.php and execute this in a ZTS build: `php -d opcache.preload=./ext/opcache/tests/preload_class_alias_2.inc -d "error_log=" -d "allow_url_include=1" test.php`
nielsdos
added a commit
that referenced
this issue
Mar 20, 2025
* PHP-8.3: Fix GH-18112: NULL access with preloading and INI option
nielsdos
added a commit
that referenced
this issue
Mar 20, 2025
* PHP-8.4: Fix GH-18112: NULL access with preloading and INI option
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
Resulted in this output:
To reproduce:
Commit:
Configurations:
Operating System:
This report is automatically generated by FlowFusion
PHP Version
aa9d140
Operating System
No response
The text was updated successfully, but these errors were encountered: