cvs: ZendEngine2 / zend_exceptions.c

From: Date: Mon, 05 Dec 2005 13:41:14 +0000
Subject: cvs: ZendEngine2 / zend_exceptions.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4424@lists.php.net to get a copy of this message
tony2001 Mon Dec 5 08:41:14 2005 EDT Modified files: /ZendEngine2 zend_exceptions.c Log: MF51: improve error messages http://cvs.php.net/diff.php/ZendEngine2/zend_exceptions.c?r1=1.92&r2=1.93&ty=u Index: ZendEngine2/zend_exceptions.c diff -u ZendEngine2/zend_exceptions.c:1.92 ZendEngine2/zend_exceptions.c:1.93 --- ZendEngine2/zend_exceptions.c:1.92 Sun Dec 4 06:45:45 2005 +++ ZendEngine2/zend_exceptions.c Mon Dec 5 08:41:14 2005 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_exceptions.c,v 1.92 2005/12/04 11:45:45 tony2001 Exp $ */ +/* $Id: zend_exceptions.c,v 1.93 2005/12/05 13:41:14 tony2001 Exp $ */ #include "zend.h" #include "zend_API.h" @@ -132,7 +132,7 @@ 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_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();

« previous php.zend-engine.cvs (#4424) next »