Skip to content

Commit

Permalink
Check if PHP_BINARY is available
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstevenson committed May 6, 2024
1 parent 4f988f8 commit 925e444
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/XdebugHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 925e444

Please sign in to comment.