summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-12-05 13:41:14 +0000
committerAntony Dovgal <tony2001@php.net>2005-12-05 13:41:14 +0000
commit43536d38e68083d0fb2cca7bb3aba02fb725778f (patch)
treed8e2fc1d5d142b115e4fd25fd278f0b918b114ff
parentee5cdb2c14d87ee9a3b851168fcda0c87e43f757 (diff)
downloadphp-git-43536d38e68083d0fb2cca7bb3aba02fb725778f.tar.gz
MF51: improve error messages
-rw-r--r--Zend/zend_exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 87aa13eebb..b1c9eea037 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -132,7 +132,7 @@ ZEND_METHOD(exception, __construct)
zend_uchar message_type;
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|tl", &message, &message_len, &message_type, &code) == FAILURE) {
- zend_error(E_ERROR, "Wrong parameter count for Exception([string $exception [, long $code ]])");
+ zend_error(E_ERROR, "Wrong parameters for Exception([string $exception [, long $code ]])");
}
object = getThis();
@@ -171,7 +171,7 @@ ZEND_METHOD(error_exception, __construct)
zend_uchar message_type, file_type;
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|tlltl", &message, &message_len, &message_type, &code, &severity, &filename, &filename_len, &file_type, &lineno) == FAILURE) {
- zend_error(E_ERROR, "Wrong parameter count for ErrorException([string $exception [, long $code ]])");
+ zend_error(E_ERROR, "Wrong parameters for ErrorException([string $exception [, long $code, [ long $severity, [ string $filename, [ long $lineno ]]]]])");
}
object = getThis();