Skip to content

Commit

Permalink
[11.x] Disable PHP_CLI_SERVER_WORKERS on Windows environment (#53178)
Browse files Browse the repository at this point in the history
fixes #53175

Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone authored Oct 16, 2024
1 parent 935cea4 commit a13614f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ protected function flushOutputBuffer()
*/
protected function getDateFromLine($line)
{
$regex = env('PHP_CLI_SERVER_WORKERS', 1) > 1
$regex = ! windows_os() && env('PHP_CLI_SERVER_WORKERS', 1) > 1
? '/^\[\d+]\s\[([a-zA-Z0-9: ]+)\]/'
: '/^\[([^\]]+)\]/';

Expand Down

0 comments on commit a13614f

Please sign in to comment.