diff options
author | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-17 00:09:15 +0200 |
---|---|---|
committer | Máté Kocsis <kocsismate@woohoolabs.com> | 2020-04-20 13:09:00 +0200 |
commit | 6111d64cda04a86e3a428edb36f064a187163825 (patch) | |
tree | 2842f8f5d7ecbd1e4033ca0bafd483db270528e5 /sapi/phpdbg/phpdbg.c | |
parent | 283d37ad8f0e439cc6a454811946d9f7ccd25eb7 (diff) | |
download | php-git-6111d64cda04a86e3a428edb36f064a187163825.tar.gz |
Improve a last couple of argument error messages
Closes GH-5404
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r-- | sapi/phpdbg/phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } } /* }}} */ |