File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ PHP NEWS
2
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
3
?? ??? 2022, PHP 8.0.22
4
4
5
+ - CLI:
6
+ . Fixed potential overflow for the builtin server via the PHP_CLI_SERVER_WORKERS
7
+ environment variable. (yiyuaner)
8
+
5
9
- Core:
6
10
. Fixed bug GH-8923 (error_log on Windows can hold the file write lock). (cmb)
7
11
Original file line number Diff line number Diff line change @@ -2299,7 +2299,7 @@ static void php_cli_server_dtor(php_cli_server *server) /* {{{ */
2299
2299
!WIFSIGNALED (php_cli_server_worker_status ));
2300
2300
}
2301
2301
2302
- free (php_cli_server_workers );
2302
+ pefree (php_cli_server_workers , 1 );
2303
2303
}
2304
2304
#endif
2305
2305
} /* }}} */
@@ -2385,12 +2385,8 @@ static void php_cli_server_startup_workers() {
2385
2385
if (php_cli_server_workers_max > 1 ) {
2386
2386
zend_long php_cli_server_worker ;
2387
2387
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 );
2394
2390
2395
2391
php_cli_server_master = getpid ();
2396
2392
You can’t perform that action at this time.
0 commit comments