diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 950863629ea..fdbab21a9be 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -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)) {