File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ PHP NEWS
2626 . Fixed bug GH-14082 (Segmentation fault on unknown address 0x600000000018
2727 in ext/opcache/jit/zend_jit.c). (nielsdos)
2828
29+ - PCNTL:
30+ . Fixed bug GH-18958 (Fatal error during shutdown after pcntl_rfork() or
31+ pcntl_forkx() with zend-max-execution-timers). (Arnaud)
32+
2933- Standard:
3034 . Fix misleading errors in printf(). (nielsdos)
3135 . Fix RCN violations in array functions. (nielsdos)
Original file line number Diff line number Diff line change @@ -1277,6 +1277,8 @@ PHP_FUNCTION(pcntl_rfork)
12771277 default :
12781278 php_error_docref (NULL , E_WARNING , "Error %d" , errno );
12791279 }
1280+ } else if (pid == 0 ) {
1281+ zend_max_execution_timer_init ();
12801282 }
12811283
12821284 RETURN_LONG ((zend_long ) pid );
@@ -1320,6 +1322,8 @@ PHP_FUNCTION(pcntl_forkx)
13201322 default :
13211323 php_error_docref (NULL , E_WARNING , "Error %d" , errno );
13221324 }
1325+ } else if (pid == 0 ) {
1326+ zend_max_execution_timer_init ();
13231327 }
13241328
13251329 RETURN_LONG ((zend_long ) pid );
You can’t perform that action at this time.
0 commit comments