mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Use DO_UCALL for method calls
This commit is contained in:
parent
cdd58edf42
commit
cb7cc16c2d
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user