Skip to content

Commit 925e444

Browse files
committed
Check if PHP_BINARY is available
1 parent 4f988f8 commit 925e444

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/XdebugHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,11 @@ private function checkConfiguration(?string &$info): bool
590590
return false;
591591
}
592592

593+
if (!file_exists(PHP_BINARY)) {
594+
$info = 'PHP_BINARY is not available';
595+
return false;
596+
}
597+
593598
if (extension_loaded('uopz') && !((bool) ini_get('uopz.disable'))) {
594599
// uopz works at opcode level and disables exit calls
595600
if (function_exists('uopz_allow_exit')) {

0 commit comments

Comments
 (0)