Commit 35a9f771235 for php
commit 35a9f7712353c19c8b8060ac20f09d42ce15399b
Merge: 8c225561bd5 023ee4dc998
Author: Arnaud Le Blanc <arnaud.lb@gmail.com>
Date: Tue Sep 29 18:04:28 2026 +0200
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4:
Fix GH-23986: Clear the realpath cache in the child after pcntl_fork() (#23987)
diff --cc NEWS
index c0ccd251851,4ace934375f..60b47d31910
--- a/NEWS
+++ b/NEWS
@@@ -93,6 -90,12 +93,8 @@@ PH
an exception is pending. (nicolas-grekas)
. Fixed pcntl_signal_dispatch() dropping the signals queued behind a handler
that throws. (nicolas-grekas)
- . Fixed pcntl_setcpuaffinity() error message advertising the cpu count as
- the inclusive upper bound. (lacatoire)
- . Fixed pcntl_setqos_class() requiring its optional $qos_class argument.
- (lacatoire)
+ . Fixed bug GH-23986 (/proc/self paths resolve to the parent process after
+ pcntl_fork()). (Lazizbek Ergashev)
- PDO:
. Fixed PDOStatement::getColumnMeta() reading out of bounds for an invalid
diff --cc main/main.c
index 4d1859e7e4d,4870349ab3f..ad7ae8a5177
--- a/main/main.c
+++ b/main/main.c
@@@ -1862,12 -1799,6 +1862,13 @@@ static void sigchld_handler(int apar
/* }}} */
#endif
+PHPAPI void php_child_init(void)
+{
+ refresh_memory_manager();
+ zend_max_execution_timer_init();
++ php_clear_stat_cache(true, NULL, 0);
+}
+
/* {{{ php_request_startup */
zend_result php_request_startup(void)
{