[php-src] PR #22783: Fix GH-22782: preloading FCC const exprs

From: Date: Fri, 17 Jul 2026 12:24:27 +0000
Subject: [php-src] PR #22783: Fix GH-22782: preloading FCC const exprs
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-37119@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22783 Author: arnaud-lb Fixes GH-22782. Preloading will try to evaluate class constants during compilation, but evaluated FCCs are objects, which can not be persisted. Apply the same fix as for enums: Fail evaluation when compiling. Preloading will also reset CG(map_ptr_last) after compilation, which results in collisions if map ptrs were allocated during compilation. Move the ZEND_MAP_PTR_NEW() to the persist phase, as a shared map ptr is not necessary before that.

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