]> granicus.if.org Git - php/commitdiff
return ptr, not status
authorPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 18:14:29 +0000 (20:14 +0200)
committerPierre Joye <pierre.php@gmail.com>
Thu, 15 May 2014 18:14:29 +0000 (20:14 +0200)
ext/opcache/ZendAccelerator.c

index 11a1dc2ce776e89e6c0492aa82eec9e761877c02..d89fa73d4cbe65718d9338aadb1134b7027f44db 100644 (file)
@@ -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;