mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
improve error messages
This commit is contained in:
parent
012e5bf4cd
commit
4ce11c2a63
@ -131,7 +131,7 @@ ZEND_METHOD(exception, __construct)
|
||||
int argc = ZEND_NUM_ARGS(), message_len;
|
||||
|
||||
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|sl", &message, &message_len, &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();
|
||||
@ -157,7 +157,7 @@ ZEND_METHOD(error_exception, __construct)
|
||||
int argc = ZEND_NUM_ARGS(), message_len, filename_len;
|
||||
|
||||
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC, "|sllsl", &message, &message_len, &code, &severity, &filename, &filename_len, &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();
|
||||
|
Loading…
Reference in New Issue
Block a user