Skip to content

Commit a13614f

Browse files
authored
[11.x] Disable PHP_CLI_SERVER_WORKERS on Windows environment (#53178)
fixes #53175 Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 935cea4 commit a13614f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/ServeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ protected function flushOutputBuffer()
357357
*/
358358
protected function getDateFromLine($line)
359359
{
360-
$regex = env('PHP_CLI_SERVER_WORKERS', 1) > 1
360+
$regex = ! windows_os() && env('PHP_CLI_SERVER_WORKERS', 1) > 1
361361
? '/^\[\d+]\s\[([a-zA-Z0-9: ]+)\]/'
362362
: '/^\[([^\]]+)\]/';
363363

0 commit comments

Comments
 (0)