diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-26 10:54:40 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-26 10:54:40 +0200 |
commit | 1314ccbf8c3731f000e2c32f34dad21b053333f3 (patch) | |
tree | 06eefc0988942a2ee8201fcedc8b54dd97497bf1 /ext/opcache/zend_file_cache.c | |
parent | b6deace022a792ffe7139cfb82654095cfd27364 (diff) | |
download | php-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.c | 8 |
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); |