Remove commented code from get_method handler

This commit is contained in:
Nikita Popov 2021-05-25 15:25:51 +02:00
parent fda53548b5
commit a76d35abcc

View file

@ -1330,13 +1330,6 @@ ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, zend_st
}
} while (0);
#ifdef MBO_0
/* right now this function is used for non static method lookup too */
/* Is the function static */
if (UNEXPECTED(!(fbc->common.fn_flags & ZEND_ACC_STATIC))) {
zend_error_noreturn(E_ERROR, "Cannot call non-static method %s::%s() without object", ZEND_FN_SCOPE_NAME(fbc), ZSTR_VAL(fbc->common.function_name));
}
#endif
if (!(fbc->op_array.fn_flags & ZEND_ACC_PUBLIC)) {
scope = zend_get_executed_scope();
if (UNEXPECTED(fbc->common.scope != scope)) {