From: Pierre Joye Date: Thu, 15 May 2014 18:14:29 +0000 (+0200) Subject: return ptr, not status X-Git-Tag: POST_PHPNG_MERGE~353 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a89759118088fd20755b2bf505c985d61599d053;p=php return ptr, not status --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 11a1dc2ce7..d89fa73d4c 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -1691,7 +1691,7 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type T (*EG(opline_ptr))->op2.u.constant.value.lval != ZEND_REQUIRE_ONCE)) { #endif - if (zend_hash_add_empty_element(&EG(included_files), persistent_script->full_path) == SUCCESS) { + if (zend_hash_add_empty_element(&EG(included_files), persistent_script->full_path) != NULL) { /* ext/phar has to load phar's metadata into memory */ if (strstr(persistent_script->full_path->val, ".phar") && !strstr(persistent_script->full_path->val, "://")) { php_stream_statbuf ssb;