diff options
| author | Nikita Popov <nikic@php.net> | 2016-03-12 16:00:04 +0100 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2016-03-25 19:11:37 +0100 |
| commit | 8e5b139732893d2a5f6ba3ae0a0b2b5cf6dba09f (patch) | |
| tree | 5ee7cc45d90120a3875ddfc65a2bb7d2ad34bafb /Zend/zend_compile.c | |
| parent | 24551ed6c8f9e8cee6d12aa792f83648eead7ff4 (diff) | |
| download | php-git-8e5b139732893d2a5f6ba3ae0a0b2b5cf6dba09f.tar.gz | |
Evaluate arguments of new for classes without ctor
ML: http://markmail.org/message/4b3mk7jid64zvz34
Diffstat (limited to 'Zend/zend_compile.c')
| -rw-r--r-- | Zend/zend_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 0b871ed52a..521cd08f36 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3792,7 +3792,8 @@ void zend_compile_new(znode *result, zend_ast *ast) /* {{{ */ zend_compile_call_common(&ctor_result, args_ast, NULL); zend_do_free(&ctor_result); - /* New jumps over ctor call if ctor does not exist */ + /* We save the position of DO_FCALL for convenience in find_live_range(). + * This info is not preserved for runtime. */ opline = &CG(active_op_array)->opcodes[opnum]; opline->op2.opline_num = get_next_op_number(CG(active_op_array)); } |
