mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
update the exception message to better match the actual check
This commit is contained in:
parent
d586441d90
commit
d18b16244c
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue