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 @@ -29,6 +29,10 @@ PHP NEWS
2929 . Fixed bug GH-14082 (Segmentation fault on unknown address 0x600000000018
3030 in ext/opcache/jit/zend_jit.c). (nielsdos)
3131
32+ - PCNTL:
33+ . Fixed bug GH-18958 (Fatal error during shutdown after pcntl_rfork() or
34+ pcntl_forkx() with zend-max-execution-timers). (Arnaud)
35+
3236- Standard:
3337 . Fix misleading errors in printf(). (nielsdos)
3438 . Fix RCN violations in array functions. (nielsdos)
Original file line number Diff line number Diff line change @@ -1513,6 +1513,8 @@ PHP_FUNCTION(pcntl_rfork)
15131513 default :
15141514 php_error_docref (NULL , E_WARNING , "Error %d" , errno );
15151515 }
1516+ } else if (pid == 0 ) {
1517+ zend_max_execution_timer_init ();
15161518 }
15171519
15181520 RETURN_LONG ((zend_long ) pid );
@@ -1556,6 +1558,8 @@ PHP_FUNCTION(pcntl_forkx)
15561558 default :
15571559 php_error_docref (NULL , E_WARNING , "Error %d" , errno );
15581560 }
1561+ } else if (pid == 0 ) {
1562+ zend_max_execution_timer_init ();
15591563 }
15601564
15611565 RETURN_LONG ((zend_long ) pid );
You can’t perform that action at this time.
0 commit comments