diff options
author | Pierre Joye <pierre.php@gmail.com> | 2014-05-15 20:14:29 +0200 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2014-05-15 20:14:29 +0200 |
commit | a89759118088fd20755b2bf505c985d61599d053 (patch) | |
tree | d605f148ad0f630b552eda0703a3c4fc5e0e152b | |
parent | 8a2a9379cff1762f6769b8dbe9b650416226f96b (diff) | |
download | php-git-a89759118088fd20755b2bf505c985d61599d053.tar.gz |
return ptr, not status
-rw-r--r-- | ext/opcache/ZendAccelerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |