cvs: ZendEngine2 / zend_exceptions.c
| From: | Jani Taskinen | Date: | Wed, 25 Feb 2004 13:11:00 +0000 |
| Subject: | cvs: ZendEngine2 / zend_exceptions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2406@lists.php.net to get a copy of this message | ||
sniper Wed Feb 25 08:11:00 2004 EDT
Modified files:
/ZendEngine2 zend_exceptions.c
Log:
Improve error messages
http://cvs.php.net/diff.php/ZendEngine2/zend_exceptions.c?r1=1.59&r2=1.60&ty=u
Index: ZendEngine2/zend_exceptions.c
diff -u ZendEngine2/zend_exceptions.c:1.59 ZendEngine2/zend_exceptions.c:1.60
--- ZendEngine2/zend_exceptions.c:1.59 Wed Feb 25 05:43:36 2004
+++ ZendEngine2/zend_exceptions.c Wed Feb 25 08:11:00 2004
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_exceptions.c,v 1.59 2004/02/25 10:43:36 derick Exp $ */
+/* $Id: zend_exceptions.c,v 1.60 2004/02/25 13:11:00 sniper Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -343,7 +343,7 @@
}
/* }}} */
-int zend_spprintf(char **message, int max_len, char *format, ...)
+static int zend_spprintf(char **message, int max_len, char *format, ...)
{
va_list arg;
int len;
@@ -471,7 +471,7 @@
MAKE_STD_ZVAL(ex);
if (exception_ce) {
if (!instanceof_function(exception_ce, default_exception_ce TSRMLS_CC)) {
- zend_error(E_NOTICE, "Exceptions must be derived from exception");
+ zend_error(E_NOTICE, "Exceptions must be derived from the Exception base class");
exception_ce = default_exception_ce;
}
} else {
@@ -563,7 +563,7 @@
exception_ce = Z_OBJCE_P(exception);
if (!exception_ce || !instanceof_function(exception_ce, default_exception_ce TSRMLS_CC)) {
- zend_error(E_ERROR, "Exceptions must be valid objects that are derived from class
Exception");
+ zend_error(E_ERROR, "Exceptions must be valid objects derived from the Exception base
class");
}
zend_throw_exception_internal(exception TSRMLS_CC);
}