diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-24 14:28:44 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-06-11 13:09:33 +0200 |
commit | 89b2d88659b8a561769f51dfab1fa325e7fc0603 (patch) | |
tree | a2832b49dd0036f3928d10279d28422f687caf39 /ext/opcache/Optimizer/zend_inference.c | |
parent | 9ecc0a4f296cf5c72572e75a9734b40d941e2427 (diff) | |
download | php-git-89b2d88659b8a561769f51dfab1fa325e7fc0603.tar.gz |
Register class before fetching parent
We want the class declaration to be available while compiling the
parent class.
Diffstat (limited to 'ext/opcache/Optimizer/zend_inference.c')
-rw-r--r-- | ext/opcache/Optimizer/zend_inference.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index 0fbeb39a44..28e0128bd1 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -3166,7 +3166,6 @@ static int zend_update_type_info(const zend_op_array *op_array, break; } case ZEND_DECLARE_ANON_CLASS: - case ZEND_DECLARE_ANON_INHERITED_CLASS: UPDATE_SSA_TYPE(MAY_BE_CLASS, ssa_ops[i].result_def); if (script && (ce = zend_hash_find_ptr(&script->class_table, Z_STR_P(CRT_CONSTANT_EX(op_array, opline, opline->op1, ssa->rt_constants)))) != NULL) { UPDATE_SSA_OBJ_TYPE(ce, 0, ssa_ops[i].result_def); |