diff options
author | Dmitry Stogov <dmitry@zend.com> | 2013-11-25 14:09:57 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2013-11-25 14:09:57 +0400 |
commit | b7b6c35eeaff1d22dc18f81765eea96c3cd6d2b2 (patch) | |
tree | be31b83ea00a628c1cf030298c19aceda55ca4c4 | |
parent | 27dc82d0ec199ee8aab9548f64aab29bdeccedd3 (diff) | |
download | php-git-b7b6c35eeaff1d22dc18f81765eea96c3cd6d2b2.tar.gz |
Fixed compatibility with old PHP versions
-rw-r--r-- | ext/opcache/zend_accelerator_util_funcs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/opcache/zend_accelerator_util_funcs.c b/ext/opcache/zend_accelerator_util_funcs.c index 53a54b5100..85d5a05fa2 100644 --- a/ext/opcache/zend_accelerator_util_funcs.c +++ b/ext/opcache/zend_accelerator_util_funcs.c @@ -836,6 +836,7 @@ static int zend_hash_unique_copy(HashTable *target, HashTable *source, unique_co } else { if (p->nKeyLength > 0 && p->arKey[0] == 0) { /* Mangled key */ +#if ZEND_EXTENSION_API_NO >= PHP_5_3_X_API_NO if (((zend_function*)p->pData)->common.fn_flags & ZEND_ACC_CLOSURE) { /* update closure */ if (zend_hash_quick_update(target, p->arKey, p->nKeyLength, p->h, p->pData, size, &t) == SUCCESS) { @@ -846,6 +847,7 @@ static int zend_hash_unique_copy(HashTable *target, HashTable *source, unique_co } else { /* ignore and wait for runtime */ } +#endif } else if (!ignore_dups && zend_hash_quick_find(target, p->arKey, p->nKeyLength, p->h, &t) == SUCCESS) { *fail_data = p->pData; *conflict_data = t; |