[php-src] PR #23987: Fix GH-23986: Clear the realpath cache in the child after pcntl_fork()

From: Date: Tue, 29 Sep 2026 11:44:09 +0000
Subject: [php-src] PR #23987: Fix GH-23986: Clear the realpath cache in the child after pcntl_fork()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38920@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23987 Author: lazerg The realpath cache survives fork(), so a path under /proc/self that the parent already resolved stays mapped to the parent's /proc/<pid> in the child. Same goes for /proc/thread-self and anything that goes through them, like /dev/fd. The child now clears its realpath cache right after the fork, next to the existing zend_max_execution_timer_init() call, in pcntl_fork(), pcntl_rfork() and pcntl_forkx(). Fixes GH-23986

« previous php.git-pulls (#38920) next »