[php-src] PR #20081: Fix access to uninitialized vars in preload_load()

From: Date: Mon, 06 Oct 2025 17:02:55 +0000
Subject: [php-src] PR #20081: Fix access to uninitialized vars in preload_load()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33508@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20081 Author: arnaud-lb Found while looking at GH-20051. preload_load() accesses EG(function_table) and EG(class_table), but these may be uninitialized at this point. For instance, when preloading is done in a sub-process, these variables are uninitialized when the parent calls preload_load(). The update of EG(persistent_constants_count), EG(persistent_functions_count), EG(persistent_classes_count) is only necessary when preload_load() is invoked in accel_preload(), and preloading doesn't forks, because in this case, shutdown will truncate global symbol tables after the preloading request.

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