diff options
author | Fabien Villepinte <fabien.villepinte@gmail.com> | 2019-10-19 21:27:37 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-10-21 09:22:09 +0200 |
commit | bea2ff88c9536ffd157c5fa304bd29a9cee85524 (patch) | |
tree | 82cc3fdab898f9876750c716b5fb27e7fbd1073b /ext/reflection/php_reflection.c | |
parent | 45a7723267741be4867306d18b15a4a27d67b0f7 (diff) | |
download | php-git-bea2ff88c9536ffd157c5fa304bd29a9cee85524.tar.gz |
Fix bug #78697: inaccurate error message
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 012f23982d..fe5f2178c6 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5140,7 +5140,7 @@ ZEND_METHOD(reflection_class, implementsInterface) if (!(interface_ce->ce_flags & ZEND_ACC_INTERFACE)) { zend_throw_exception_ex(reflection_exception_ptr, 0, - "Interface %s is a Class", ZSTR_VAL(interface_ce->name)); + "%s is not an interface", ZSTR_VAL(interface_ce->name)); return; } RETURN_BOOL(instanceof_function(ce, interface_ce)); |