-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Proposal: Disable Scan Directories Feature when restarting #137
Comments
Have you tried using
Perhaps this is related to #136 which was caused by phpstan doing something with ini files?
The PHP manual is badly worded. What they mean is that a "blank directory" (
However, xdebug-handler only uses |
@johnstevenson sorry i did not see the Thank you very much for the tip using My proposal fixed the Issue because phpstan is using \React\ChildProcess\Process which will inherit all environment variables from the parent process. But phpstan is missing the
|
This relates to: phpstan/phpstan-src#726 |
I'am using php in a standard docker container
FROM php:7.4-fpm
which is compiled with--with-config-file-scan-dir
This leads to duplicate module loading when the temporary INI-File is generated from
php_ini_scanned_files()
xdebug-handler/src/XdebugHandler.php
Line 197 in 84674dd
I propose that the
proc_open
call should be provided with thePHP_INI_SCAN_DIR
environment variable pointing to an directory containing an empty ini-file to resolve this issue:xdebug-handler/src/XdebugHandler.php
Line 301 in 84674dd
Note the comment in the PHP Manual:
https://www.php.net/manual/en/configuration.file.php#configuration.file.scan
Alternatively the temporary INI-File could be stored in a directory and included this why and not by using the
-c
-Flag:xdebug-handler/src/XdebugHandler.php
Line 424 in 84674dd
I've encountered this issue in https://github.com/phpstan/phpstan.
The text was updated successfully, but these errors were encountered: