mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Remove commented code from get_method handler
This commit is contained in:
parent
fda53548b5
commit
a76d35abcc
1 changed files with 0 additions and 7 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue