From 6111d64cda04a86e3a428edb36f064a187163825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 17 Apr 2020 00:09:15 +0200 Subject: Improve a last couple of argument error messages Closes GH-5404 --- sapi/phpdbg/phpdbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 9e173d40d8..8a1d821394 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -429,7 +429,7 @@ static PHP_FUNCTION(phpdbg_color) break; default: - zend_value_error("phpdbg detected an incorrect color constant"); + zend_argument_value_error(1, "must be either PHPDBG_COLOR_PROMPT, PHPDBG_COLOR_NOTICE, or PHPDBG_COLOR_ERROR"); } } /* }}} */ -- cgit v1.2.1