From f1c92fa4c522f1ebde315437641bcddd9efadc9c Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 30 Aug 2003 23:51:42 +0000 Subject: - Calling abstract methods should be a error for consistency reason. - So in reflection_api we use the reflection_exception again. --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index de0ee0e0f7..4df1f9d438 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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 { -- cgit v1.2.1