diff options
author | foobar <sniper@php.net> | 2004-02-25 13:11:00 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2004-02-25 13:11:00 +0000 |
commit | c0885c93fec8eaee4eb1283b8af820d023299d2e (patch) | |
tree | f11a917c67f9347c8b3876f16e76de8733d4bcc8 /Zend/zend_exceptions.c | |
parent | 5b51a57317b11557a36784116cb8dbf5c6a4561b (diff) | |
download | php-git-c0885c93fec8eaee4eb1283b8af820d023299d2e.tar.gz |
Improve error messages
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 0ec4e0daf4..dd1f2c08bb 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -343,7 +343,7 @@ ZEND_METHOD(exception, getTraceAsString) } /* }}} */ -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 @@ ZEND_API void zend_throw_exception_ex(zend_class_entry *exception_ce, long code 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 @@ ZEND_API void zend_throw_exception_object(zval *exception TSRMLS_DC) 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); } |