Skip to content

Commit

Permalink
Detect when running in PHPDBG (#18198)
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE authored and taylorotwell committed Mar 3, 2017
1 parent 3ba0d53 commit 35f0bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ public function detectEnvironment(Closure $callback)
*/
public function runningInConsole()
{
return php_sapi_name() == 'cli';
return php_sapi_name() == 'cli' || php_sapi_name() == 'phpdbg';
}

/**
Expand Down

0 comments on commit 35f0bb1

Please sign in to comment.