diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-04 16:15:05 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-03-04 16:15:05 +0100 |
commit | 97de8cfc710c51bc19ed504d5caeec83db5a3f8d (patch) | |
tree | 6389fbc19d6e13e950a477cabf637f0690a98a7b | |
parent | b853201a6d201da692b83b7d986170a2bcc989e8 (diff) | |
download | php-git-97de8cfc710c51bc19ed504d5caeec83db5a3f8d.tar.gz |
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...
-rw-r--r-- | ext/opcache/zend_persist.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |