1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix pcntl_rfork / pcntl_forkx with zend-max-execution-timers

This commit is contained in:
Arnaud Le Blanc
2025-06-27 14:02:36 +02:00
parent e892356884
commit aee1d7fb96
2 changed files with 8 additions and 0 deletions

4
NEWS
View File

@@ -26,6 +26,10 @@ PHP NEWS
. Fixed bug GH-14082 (Segmentation fault on unknown address 0x600000000018
in ext/opcache/jit/zend_jit.c). (nielsdos)
- PCNTL:
. Fixed bug GH-18958 (Fatal error during shutdown after pcntl_rfork() or
pcntl_forkx() with zend-max-execution-timers). (Arnaud)
- Standard:
. Fix misleading errors in printf(). (nielsdos)
. Fix RCN violations in array functions. (nielsdos)

View File

@@ -1277,6 +1277,8 @@ PHP_FUNCTION(pcntl_rfork)
default:
php_error_docref(NULL, E_WARNING, "Error %d", errno);
}
} else if (pid == 0) {
zend_max_execution_timer_init();
}
RETURN_LONG((zend_long) pid);
@@ -1320,6 +1322,8 @@ PHP_FUNCTION(pcntl_forkx)
default:
php_error_docref(NULL, E_WARNING, "Error %d", errno);
}
} else if (pid == 0) {
zend_max_execution_timer_init();
}
RETURN_LONG((zend_long) pid);