diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c index 6688e473cb7..19bc1ce7adc 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; } }