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
?? ??? ????, PHP 8.1.9
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 @@ -2296,7 +2296,7 @@ static void php_cli_server_dtor(php_cli_server *server) /* {{{ */
2296
2296
!WIFSIGNALED (php_cli_server_worker_status ));
2297
2297
}
2298
2298
2299
- free (php_cli_server_workers );
2299
+ pefree (php_cli_server_workers , 1 );
2300
2300
}
2301
2301
#endif
2302
2302
} /* }}} */
@@ -2382,12 +2382,8 @@ static void php_cli_server_startup_workers(void) {
2382
2382
if (php_cli_server_workers_max > 1 ) {
2383
2383
zend_long php_cli_server_worker ;
2384
2384
2385
- php_cli_server_workers = calloc (
2386
- php_cli_server_workers_max , sizeof (pid_t ));
2387
- if (!php_cli_server_workers ) {
2388
- php_cli_server_workers_max = 1 ;
2389
- return ;
2390
- }
2385
+ php_cli_server_workers = pecalloc (
2386
+ php_cli_server_workers_max , sizeof (pid_t ), 1 );
2391
2387
2392
2388
php_cli_server_master = getpid ();
2393
2389
You can’t perform that action at this time.
0 commit comments