Skip to content

Commit a76d35a

Browse files
committed
Remove commented code from get_method handler
1 parent fda5354 commit a76d35a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Zend/zend_object_handlers.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,13 +1330,6 @@ ZEND_API zend_function *zend_std_get_static_method(zend_class_entry *ce, zend_st
13301330
}
13311331
} while (0);
13321332

1333-
#ifdef MBO_0
1334-
/* right now this function is used for non static method lookup too */
1335-
/* Is the function static */
1336-
if (UNEXPECTED(!(fbc->common.fn_flags & ZEND_ACC_STATIC))) {
1337-
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));
1338-
}
1339-
#endif
13401333
if (!(fbc->op_array.fn_flags & ZEND_ACC_PUBLIC)) {
13411334
scope = zend_get_executed_scope();
13421335
if (UNEXPECTED(fbc->common.scope != scope)) {

0 commit comments

Comments
 (0)