summaryrefslogtreecommitdiff
path: root/ext/opcache/zend_persist.c
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-04-11 10:06:17 +0200
committerBob Weinand <bobwei9@hotmail.com>2014-04-11 10:08:44 +0200
commitf614fc68984b2d7fce3f275b8106955b5d910472 (patch)
tree10c98c57643c60af4d1ae6a56b7112fb274a65ed /ext/opcache/zend_persist.c
parentd3f390a26888eefd012b4634137318797965ea86 (diff)
downloadphp-git-f614fc68984b2d7fce3f275b8106955b5d910472.tar.gz
Fix bug #66015 by reverting "Removed operations on constant arrays."
Diffstat (limited to 'ext/opcache/zend_persist.c')
-rw-r--r--ext/opcache/zend_persist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/zend_persist.c b/ext/opcache/zend_persist.c
index 47f8f88312..17f8e8798f 100644
--- a/ext/opcache/zend_persist.c
+++ b/ext/opcache/zend_persist.c
@@ -174,7 +174,9 @@ static void zend_persist_zval(zval *z TSRMLS_DC)
zend_accel_store_interned_string(z->value.str.val, z->value.str.len + 1);
break;
case IS_ARRAY:
+#if ZEND_EXTENSION_API_NO <= PHP_5_5_API_NO
case IS_CONSTANT_ARRAY:
+#endif
zend_accel_store(z->value.ht, sizeof(HashTable));
zend_hash_persist(z->value.ht, (zend_persist_func_t) zend_persist_zval_ptr, sizeof(zval**) TSRMLS_CC);
break;