File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
22|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33?? ??? 2022, PHP 8.0.22
44
5+ - CLI:
6+ . Fixed potential overflow for the builtin server via the PHP_CLI_SERVER_WORKERS
7+ environment variable. (yiyuaner)
8+
59- Core:
610 . Fixed bug GH-8923 (error_log on Windows can hold the file write lock). (cmb)
711
Original file line number Diff line number Diff line change @@ -2299,7 +2299,7 @@ static void php_cli_server_dtor(php_cli_server *server) /* {{{ */
22992299 !WIFSIGNALED (php_cli_server_worker_status ));
23002300 }
23012301
2302- free (php_cli_server_workers );
2302+ pefree (php_cli_server_workers , 1 );
23032303 }
23042304#endif
23052305} /* }}} */
@@ -2385,12 +2385,8 @@ static void php_cli_server_startup_workers() {
23852385 if (php_cli_server_workers_max > 1 ) {
23862386 zend_long php_cli_server_worker ;
23872387
2388- php_cli_server_workers = calloc (
2389- php_cli_server_workers_max , sizeof (pid_t ));
2390- if (!php_cli_server_workers ) {
2391- php_cli_server_workers_max = 1 ;
2392- return ;
2393- }
2388+ php_cli_server_workers = pecalloc (
2389+ php_cli_server_workers_max , sizeof (pid_t ), 1 );
23942390
23952391 php_cli_server_master = getpid ();
23962392
You can’t perform that action at this time.
0 commit comments