diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-05-26 14:10:57 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-07-10 21:05:28 +0200 |
commit | d30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1 (patch) | |
tree | 33fdeac65ef66eb3db6066af396763fae391bef9 /Zend/zend_exceptions.c | |
parent | 2ad75ba78440eeffbde35a12c666d5f55aaf631a (diff) | |
download | php-git-d30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1.tar.gz |
Review the usage of apostrophes in error messages
Closes GH-5590
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 989d007102..e46e18f1d3 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -946,7 +946,7 @@ ZEND_API ZEND_COLD int zend_exception_error(zend_object *ex, int severity) /* {{ } zend_error_va(E_WARNING, (file && ZSTR_LEN(file) > 0) ? ZSTR_VAL(file) : NULL, line, - "Uncaught %s in exception handling during call to %s::__tostring()", + "Uncaught %s in exception handling during call to %s::__toString()", ZSTR_VAL(Z_OBJCE(zv)->name), ZSTR_VAL(ce_exception->name)); if (file) { @@ -968,7 +968,7 @@ ZEND_API ZEND_COLD int zend_exception_error(zend_object *ex, int severity) /* {{ /* We successfully unwound, nothing more to do */ result = SUCCESS; } else { - zend_error(severity, "Uncaught exception '%s'", ZSTR_VAL(ce_exception->name)); + zend_error(severity, "Uncaught exception %s", ZSTR_VAL(ce_exception->name)); } OBJ_RELEASE(ex); |