diff options
author | Ferenc Kovacs <tyrael@php.net> | 2014-07-30 10:08:26 +0200 |
---|---|---|
committer | Ferenc Kovacs <tyrael@php.net> | 2014-07-30 10:16:01 +0200 |
commit | d18b16244c0cf3daf806bbad5a459fbd3195f152 (patch) | |
tree | 361fe880a7fff905c46570d044ad0aeefedd5439 /ext/reflection/php_reflection.c | |
parent | d586441d902ebabf2300b6724a2217e07bb12803 (diff) | |
download | php-git-d18b16244c0cf3daf806bbad5a459fbd3195f152.tar.gz |
update the exception message to better match the actual check
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 8ccd5e6f62..8e5fcadef4 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -4309,7 +4309,7 @@ ZEND_METHOD(reflection_class, newInstanceWithoutConstructor) GET_REFLECTION_OBJECT_PTR(ce); if (ce->create_object != NULL && ce->ce_flags & ZEND_ACC_FINAL_CLASS) { - zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Class %s is an internal class with a final __construct thus cannot be instantiated without invoking its constructor", ce->name); + zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, "Class %s is an internal class marked as final that cannot be instantiated without invoking its constructor", ce->name); } object_init_ex(return_value, ce); |