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 /Zend/zend_compile.h | |
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 'Zend/zend_compile.h')
-rw-r--r-- | Zend/zend_compile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 7745daf47e..3f2ec6ba07 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -291,7 +291,7 @@ typedef struct _zend_oparray_context { #define ZEND_ACC_HAS_FINALLY_BLOCK (1 << 15) /* | X | | */ /* | | | */ /* "main" op_array with | | | */ -/* ZEND_DECLARE_INHERITED_CLASS_DELAYED opcodes | | | */ +/* ZEND_DECLARE_CLASS_DELAYED opcodes | | | */ #define ZEND_ACC_EARLY_BINDING (1 << 16) /* | X | | */ /* | | | */ /* method flag (bc only), any method that has this | | | */ @@ -745,7 +745,7 @@ zend_bool zend_handle_encoding_declaration(zend_ast *ast); void zend_do_free(znode *op1); ZEND_API int do_bind_function(zval *lcname); -ZEND_API int do_bind_class(zval *lcname, zend_class_entry *parent_ce); +ZEND_API int do_bind_class(zval *lcname); ZEND_API uint32_t zend_build_delayed_early_binding_list(const zend_op_array *op_array); ZEND_API void zend_do_delayed_early_binding(const zend_op_array *op_array, uint32_t first_early_binding_opline); @@ -1032,7 +1032,7 @@ END_EXTERN_C() * may apper in run-time */ #define ZEND_COMPILE_IGNORE_INTERNAL_CLASSES (1<<4) -/* generate ZEND_DECLARE_INHERITED_CLASS_DELAYED opcode to delay early binding */ +/* generate ZEND_DECLARE_CLASS_DELAYED opcode to delay early binding */ #define ZEND_COMPILE_DELAYED_BINDING (1<<5) /* disable constant substitution at compile-time */ |