From 97de8cfc710c51bc19ed504d5caeec83db5a3f8d Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 4 Mar 2021 16:15:05 +0100 Subject: [PATCH] Fix dynamic func def persist with preloading If we find an existing serialization of the op_array, of course we also need to actually make use of it... --- ext/opcache/zend_persist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c index 6688e473cb..19bc1ce7ad 100644 --- a/ext/opcache/zend_persist.c +++ b/ext/opcache/zend_persist.c @@ -704,6 +704,7 @@ static void zend_persist_op_array(zval *zv) } } else { /* This can happen during preloading, if a dynamic function definition is declared. */ + Z_PTR_P(zv) = old_op_array; } } -- 2.50.1