mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- 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:
parent
c803e4643d
commit
f1c92fa4c5
7 changed files with 4 additions and 26 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue