- Calling abstract methods should be a error for consistency reason.

- So in reflection_api we use the reflection_exception again.
This commit is contained in:
Marcus Boerger 2003-08-30 23:51:42 +00:00
parent c803e4643d
commit f1c92fa4c5
7 changed files with 4 additions and 26 deletions

View file

@ -973,7 +973,7 @@ ZEND_METHOD(reflection_method, invoke)
if (!(mptr->common.fn_flags & ZEND_ACC_PUBLIC) ||
(mptr->common.fn_flags & ZEND_ACC_ABSTRACT)) {
if (mptr->common.fn_flags & ZEND_ACC_ABSTRACT) {
zend_throw_exception_ex(zend_exception_get_abstract(), 0 TSRMLS_CC,
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC,
"Trying to invoke abstract method %s::%s",
mptr->common.scope->name, mptr->common.function_name);
} else {