summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_file_cache.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-06-26 10:54:40 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-06-26 10:54:40 +0200
commit1314ccbf8c3731f000e2c32f34dad21b053333f3 (patch)
tree06eefc0988942a2ee8201fcedc8b54dd97497bf1 /ext/opcache/zend_file_cache.c
parentb6deace022a792ffe7139cfb82654095cfd27364 (diff)
downloadphp-git-1314ccbf8c3731f000e2c32f34dad21b053333f3.tar.gz
Cache __unserialize() instead of unserialize()
We should use these cache slots for the new object serialization mechanism rather than the old one.
Diffstat (limited to 'ext/opcache/zend_file_cache.c')
-rw-r--r--ext/opcache/zend_file_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c
index 7bf36b7931..15ade4ce3c 100644
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@ -827,8 +827,8 @@ static void zend_file_cache_serialize_class(zval *zv,
SERIALIZE_PTR(ce->__get);
SERIALIZE_PTR(ce->__set);
SERIALIZE_PTR(ce->__call);
- SERIALIZE_PTR(ce->serialize_func);
- SERIALIZE_PTR(ce->unserialize_func);
+ SERIALIZE_PTR(ce->__serialize);
+ SERIALIZE_PTR(ce->__unserialize);
SERIALIZE_PTR(ce->__isset);
SERIALIZE_PTR(ce->__unset);
SERIALIZE_PTR(ce->__tostring);
@@ -1564,8 +1564,8 @@ static void zend_file_cache_unserialize_class(zval *zv,
UNSERIALIZE_PTR(ce->__get);
UNSERIALIZE_PTR(ce->__set);
UNSERIALIZE_PTR(ce->__call);
- UNSERIALIZE_PTR(ce->serialize_func);
- UNSERIALIZE_PTR(ce->unserialize_func);
+ UNSERIALIZE_PTR(ce->__serialize);
+ UNSERIALIZE_PTR(ce->__unserialize);
UNSERIALIZE_PTR(ce->__isset);
UNSERIALIZE_PTR(ce->__unset);
UNSERIALIZE_PTR(ce->__tostring);