com php-src: Merge branch 'PHP-7.0' into PHP-7.1: Zend/zend_c ompile.c

From: Date: Thu, 24 Nov 2016 04:03:44 +0000
Subject: com php-src: Merge branch 'PHP-7.0' into PHP-7.1: Zend/zend_c ompile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96009@lists.php.net to get a copy of this message
Commit: c1c91c95a6eaa40dced29813a085d47a24cc7b07 Author: Xinchen Hui <laruence@gmail.com> Thu, 24 Nov 2016 12:03:23 +0800 Parents: 0880f2d2f3973e94b9b48e137385862b03d20f75 e19d263d81452c2117773387680e3da0716f1f34 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c1c91c95a6eaa40dced29813a085d47a24cc7b07 Log: Merge branch 'PHP-7.0' into PHP-7.1 * PHP-7.0: Fixed bug #73585 (Logging of "Internal Zend error - Missing class information" missing class name) Bugs: https://bugs.php.net/73585 Changed paths: MM Zend/zend_compile.c Diff: diff --cc Zend/zend_compile.c index 47cc6c6,ca6b7f2..63359df --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@@ -1099,21 -993,19 +1099,19 @@@ ZEND_API int do_bind_function(const zen ZEND_API zend_class_entry *do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time) /* {{{ */ { zend_class_entry *ce; - zval *op1, *op2; + zval *lcname, *rtd_key; if (compile_time) { - op1 = CT_CONSTANT_EX(op_array, opline->op1.constant); - op2 = CT_CONSTANT_EX(op_array, opline->op2.constant); + lcname = CT_CONSTANT_EX(op_array, opline->op1.constant); + rtd_key = lcname + 1; } else { - op1 = RT_CONSTANT(op_array, opline->op1); - op2 = RT_CONSTANT(op_array, opline->op2); + lcname = RT_CONSTANT(op_array, opline->op1); + rtd_key = lcname + 1; } - if ((ce = zend_hash_find_ptr(class_table, Z_STR_P(rtd_key))) == NULL) { - zend_error_noreturn(E_COMPILE_ERROR, "Internal Zend error - Missing class information for %s", Z_STRVAL_P(rtd_key)); - return NULL; - } - ce = zend_hash_find_ptr(class_table, Z_STR_P(op1)); ++ ce = zend_hash_find_ptr(class_table, Z_STR_P(rtd_key)); + ZEND_ASSERT(ce); ce->refcount++; - if (zend_hash_add_ptr(class_table, Z_STR_P(op2), ce) == NULL) { + if (zend_hash_add_ptr(class_table, Z_STR_P(lcname), ce) == NULL) { ce->refcount--; if (!compile_time) { /* If we're in compile time, in practice, it's quite possible

« previous php.cvs (#96009) next »