com php-src: Use DO_UCALL for method calls: Zend/ze nd_compile.c

From: Date: Tue, 28 Jun 2016 10:05:03 +0000
Subject: com php-src: Use DO_UCALL for method calls: Zend/ze nd_compile.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92698@lists.php.net to get a copy of this message
Commit: cb7cc16c2d27c5e955ec1763278279dbcc77d026 Author: Nikita Popov <nikic@php.net> Tue, 28 Jun 2016 11:57:04 +0200 Parents: cdd58edf42f1c758bfdfc386b7f700fd633c5006 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cb7cc16c2d27c5e955ec1763278279dbcc77d026 Log: Use DO_UCALL for method calls Changed paths: M Zend/zend_compile.c Diff: diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index f5f1999..144c2fb 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3195,9 +3195,9 @@ uint32_t zend_compile_args(zend_ast *ast, zend_function *fbc) /* {{{ */ ZEND_API zend_uchar zend_get_call_op(const zend_op *init_op, zend_function *fbc) /* {{{ */ { - if (fbc && init_op->opcode == ZEND_INIT_FCALL) { + if (fbc) { if (fbc->type == ZEND_INTERNAL_FUNCTION) { - if (!zend_execute_internal) { + if (init_op->opcode == ZEND_INIT_FCALL && !zend_execute_internal) { if (!(fbc->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED|ZEND_ACC_HAS_TYPE_HINTS|ZEND_ACC_RETURN_REFERENCE))) { return ZEND_DO_ICALL; } else { @@ -3205,7 +3205,7 @@ ZEND_API zend_uchar zend_get_call_op(const zend_op *init_op, zend_function *fbc) } } } else { - if (zend_execute_ex == execute_ex) { + if (zend_execute_ex == execute_ex && !(fbc->common.fn_flags & ZEND_ACC_ABSTRACT)) { return ZEND_DO_UCALL; } }

« previous php.cvs (#92698) next »