From e19d263d81452c2117773387680e3da0716f1f34 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Thu, 24 Nov 2016 12:02:02 +0800 Subject: [PATCH] Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name) Actually, I doubt how thing bug could be triggered --- NEWS | 4 +++- Zend/zend_compile.c | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 1b54ef345a..9bffebb6cc 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 eb373906eb..ca6b7f29c3 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--; -- 2.50.1