summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--Zend/zend_compile.c6
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--;