com php-src: return ptr, not status: ext/opcache/ZendAccelerator.c

From: Date: Thu, 15 May 2014 18:14:29 +0000
Subject: com php-src: return ptr, not status: ext/opcache/ZendAccelerator.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78387@lists.php.net to get a copy of this message
Commit: a89759118088fd20755b2bf505c985d61599d053 Author: Pierre Joye <pierre.php@gmail.com> Thu, 15 May 2014 20:14:29 +0200 Parents: 8a2a9379cff1762f6769b8dbe9b650416226f96b Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a89759118088fd20755b2bf505c985d61599d053 Log: return ptr, not status Changed paths: M ext/opcache/ZendAccelerator.c Diff: diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 11a1dc2...d89fa73 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;

« previous php.cvs (#78387) next »