|
|
|
@ -2674,11 +2674,11 @@ ZEND_METHOD(reflection_method, invokeArgs) |
|
|
|
{ |
|
|
|
if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) { |
|
|
|
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, |
|
|
|
"Trying to invoke abstract method %s::%s", |
|
|
|
"Trying to invoke abstract method %s::%s()", |
|
|
|
mptr->common.scope->name, mptr->common.function_name); |
|
|
|
} else { |
|
|
|
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, |
|
|
|
"Trying to invoke %s method %s::%s from scope %s", |
|
|
|
"Trying to invoke %s method %s::%s() from scope %s", |
|
|
|
mptr->common.fn_flags & ZEND_ACC_PROTECTED ? "protected" : "private", |
|
|
|
mptr->common.scope->name, mptr->common.function_name, |
|
|
|
Z_OBJCE_P(getThis())->name); |
|
|
|
@ -2705,7 +2705,7 @@ ZEND_METHOD(reflection_method, invokeArgs) |
|
|
|
if (!object) { |
|
|
|
efree(params); |
|
|
|
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, |
|
|
|
"Trying to invoke non static method %s::%s without an object", |
|
|
|
"Trying to invoke non static method %s::%s() without an object", |
|
|
|
mptr->common.scope->name, mptr->common.function_name); |
|
|
|
return; |
|
|
|
} |
|
|
|
|