cvs: ZendEngine2(PHP_5_1) / zend_exceptions.c
| From: | Antony Dovgal | Date: | Mon, 05 Dec 2005 13:39:55 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_exceptions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4423@lists.php.net to get a copy of this message | ||
tony2001 Mon Dec 5 08:39:55 2005 EDT
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_exceptions.c
Log:
improve error messages
http://cvs.php.net/diff.php/ZendEngine2/zend_exceptions.c?r1=1.79.2.4&r2=1.79.2.5&ty=u
Index: ZendEngine2/zend_exceptions.c
diff -u ZendEngine2/zend_exceptions.c:1.79.2.4 ZendEngine2/zend_exceptions.c:1.79.2.5
--- ZendEngine2/zend_exceptions.c:1.79.2.4 Sun Dec 4 06:47:00 2005
+++ ZendEngine2/zend_exceptions.c Mon Dec 5 08:39:52 2005
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_exceptions.c,v 1.79.2.4 2005/12/04 11:47:00 tony2001 Exp $ */
+/* $Id: zend_exceptions.c,v 1.79.2.5 2005/12/05 13:39:52 tony2001 Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -131,7 +131,7 @@
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 @@
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();