From 3aabfa4ab068ecde0c90419e19baedafd56155a9 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 8 Dec 2021 20:48:44 +0000 Subject: [PATCH] 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. --- src/pocketmine/PocketMine.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pocketmine/PocketMine.php b/src/pocketmine/PocketMine.php index 2c6c1fdd87..bb162ec130 100644 --- a/src/pocketmine/PocketMine.php +++ b/src/pocketmine/PocketMine.php @@ -197,6 +197,8 @@ JIT_WARNING } critical_error("PHP binary used: " . $binary); 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."); echo PHP_EOL; exit(1);