|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-03-18 11:16 UTC] simbiat at outlook dot com
Description: ------------ It looks like after some update for Windows (KB5000802 and/or later one) if you set open_basedir it will slow PHP down and cause Apache to crash. More details including text of the dump can be found here https://www.apachelounge.com/viewtopic.php?p=39993 In summary: even on latest builds of Apache both PHP 7.4.16 and 8.0.3 crash if open_basedir is set. This is true both for mod_php and mod_fcgi (errors do differ a bit, of course). Once open_basedir is commented out the crashes stop and PHP seems to start working much faster, too. Considering that !analyze -v command indicates "virtual_realpath" component on the 2nd line of the stack and open_basedir is supposed to disable realpath cache, I presume, that there is an issue in how it is being disabled. Test script: --------------- Not applicable. Any script does this Expected result: ---------------- Apache does not crash Actual result: -------------- Apache restarts child process PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 21:00:01 2025 UTC |
> open_basedir = "C:/Users/simbi/OneDrive/…" > […] if you set open_basedir it will slow PHP down and cause > Apache to crash. Assuming you have on-demand enabled, the former is to be expected. You're generally better off to download a copy of the Website and work with this. The stack backtrace would be way more helpful, if you had debug symbols for PHP installed. You can get them from windows.php.net; they're called "debug pack". Then generate a stack backtrace[1] with the Debug Diagnostic Tool and make sure that the debug symbols are loaded. Also, it might help if you can provide the output of fsutil reparsePoint query C:\Users\simbi\OneDrive [1] <https://bugs.php.net/bugs-generating-backtrace-win32.php>> […] but I've used the build from Apache Lounge. Do they provide their own PHP binaries? If so, official PHP on Windows debug packs will not work. I have not been able to attach x64 nor x86 pdbs. > Oh and my OneDrive is not in on-demand mode. I do not use this > feature. That is super strange, because in that case C:\Users\simbi\OneDrive should be a normal folder. Again, please provide the output of fsutil reparsePoint query C:\Users\simbi\OneDrive