]> granicus.if.org Git - php/commitdiff
- Fixed bug #33967 (misuse of Exception constructor doesn\'t display errorfile)
authorfoobar <sniper@php.net>
Tue, 2 Aug 2005 16:31:53 +0000 (16:31 +0000)
committerfoobar <sniper@php.net>
Tue, 2 Aug 2005 16:31:53 +0000 (16:31 +0000)
NEWS
Zend/zend_exceptions.c

diff --git a/NEWS b/NEWS
index 55cecbb6c6d56c2aef9b68c7bddbe654e6f191e0..2ef0b0791e0fc89d18be983827b2bd15d16c30c4 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? 2005, PHP 5.1
+- Fixed bug #33967 (misuse of Exception constructor doesn't display errorfile).
+  (Jani)
 - Fixed bug #33917 (number_format() output with > 1 char separators). (Jani)
 - Fixed bug #33904 (input array keys being escaped when magic quotes is off). 
   (Ilia)
index f428c3cb74ff6fe7c167de3489cb9983e3892499..1f5a83e95f8d28ca6076a9d49696109ee7fdb4a5 100644 (file)
@@ -132,7 +132,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_CORE_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
+               zend_error(E_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
        }
 
        object = getThis();
@@ -158,7 +158,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_CORE_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
+               zend_error(E_ERROR, "Wrong parameter count for exception([string $exception [, long $code ]])");
        }
 
        object = getThis();