From 925e4445685ae679d06fe52dd8db55da34b8dab4 Mon Sep 17 00:00:00 2001 From: John Stevenson Date: Sun, 5 May 2024 16:52:00 +0100 Subject: [PATCH] Check if PHP_BINARY is available --- src/XdebugHandler.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/XdebugHandler.php b/src/XdebugHandler.php index 37fc313..a665939 100644 --- a/src/XdebugHandler.php +++ b/src/XdebugHandler.php @@ -590,6 +590,11 @@ private function checkConfiguration(?string &$info): bool return false; } + if (!file_exists(PHP_BINARY)) { + $info = 'PHP_BINARY is not available'; + return false; + } + if (extension_loaded('uopz') && !((bool) ini_get('uopz.disable'))) { // uopz works at opcode level and disables exit calls if (function_exists('uopz_allow_exit')) {