com php-src: Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name): NEWS Zend/zend_compil e.c

From: Date: Thu, 24 Nov 2016 04:02:02 +0000
Subject: com php-src: Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name): NEWS Zend/zend_compil e.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96006@lists.php.net to get a copy of this message
Commit: e19d263d81452c2117773387680e3da0716f1f34 Author: Xinchen Hui <laruence@gmail.com> Thu, 24 Nov 2016 12:02:02 +0800 Parents: f8a7676fc82d5b0b5ad7e037f1ba3d7729daa976 Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e19d263d81452c2117773387680e3da0716f1f34 Log: Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name) Actually, I doubt how thing bug could be triggered Bugs: https://bugs.php.net/73585 Changed paths: M NEWS M Zend/zend_compile.c Diff: diff --git a/NEWS b/NEWS index 1b54ef3..9bffebb 100644 --- a/NEWS +++ b/NEWS @@ -2,7 +2,9 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2016 PHP 7.0.15 - +- Core: + . Fixed bug #73585 (Logging of "Internal Zend error - Missing class + information" missing class name). (Laruence) 08 Dec 2016 PHP 7.0.14 diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index eb37390..ca6b7f2 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1002,10 +1002,8 @@ ZEND_API zend_class_entry *do_bind_class(const zend_op_array* op_array, const ze op1 = RT_CONSTANT(op_array, opline->op1); op2 = RT_CONSTANT(op_array, opline->op2); } - if ((ce = zend_hash_find_ptr(class_table, Z_STR_P(op1))) == NULL) { - zend_error_noreturn(E_COMPILE_ERROR, "Internal Zend error - Missing class information for %s", Z_STRVAL_P(op1)); - return NULL; - } + ce = zend_hash_find_ptr(class_table, Z_STR_P(op1)); + ZEND_ASSERT(ce); ce->refcount++; if (zend_hash_add_ptr(class_table, Z_STR_P(op2), ce) == NULL) { ce->refcount--;

« previous php.cvs (#96006) next »