bootstrap: display value of PHPRC when PHP binary is borked

PHPRC overrides the search path for php.ini, which might break the php.ini locating.
This commit is contained in:
Dylan K. Taylor 2021-12-08 20:48:44 +00:00
parent cb0af44ccb
commit 3aabfa4ab0
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -197,6 +197,8 @@ JIT_WARNING
} }
critical_error("PHP binary used: " . $binary); critical_error("PHP binary used: " . $binary);
critical_error("Loaded php.ini: " . (($file = php_ini_loaded_file()) !== false ? $file : "none")); critical_error("Loaded php.ini: " . (($file = php_ini_loaded_file()) !== false ? $file : "none"));
$phprc = getenv("PHPRC");
critical_error("Value of PHPRC environment variable: " . ($phprc === false ? "" : $phprc));
critical_error("Please recompile PHP with the needed configuration, or refer to the installation instructions at http://pmmp.rtfd.io/en/rtfd/installation.html."); critical_error("Please recompile PHP with the needed configuration, or refer to the installation instructions at http://pmmp.rtfd.io/en/rtfd/installation.html.");
echo PHP_EOL; echo PHP_EOL;
exit(1); exit(1);