Skip to content

Commit 35f0bb1

Browse files
REBELinBLUEtaylorotwell
authored andcommitted
Detect when running in PHPDBG (#18198)
1 parent 3ba0d53 commit 35f0bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Application.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public function detectEnvironment(Closure $callback)
519519
*/
520520
public function runningInConsole()
521521
{
522-
return php_sapi_name() == 'cli';
522+
return php_sapi_name() == 'cli' || php_sapi_name() == 'phpdbg';
523523
}
524524

525525
/**

0 commit comments

Comments
 (0)