From d30cd7d7e7ddd0d06c18c47f43c7d2ee00de24a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Tue, 26 May 2020 14:10:57 +0200 Subject: Review the usage of apostrophes in error messages Closes GH-5590 --- Zend/zend_exceptions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zend/zend_exceptions.c') 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); -- cgit v1.2.1