Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_exceptions.c php-src NEWS

From: Date: Wed, 03 Aug 2005 17:09:11 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_exceptions.c php-src NEWS
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3961@lists.php.net to get a copy of this message
Hello Jani, first, how does it fix the issue? Second this cannot be right because it might lead to en endless loop if we're in a mode where the E_ERROR is converted to an exception. regards marcus Tuesday, August 2, 2005, 6:31:53 PM, you wrote: > sniper Tue Aug 2 12:31:53 2005 EDT > Modified files: > /php-src NEWS > /ZendEngine2 zend_exceptions.c > Log: > - Fixed bug #33967 (misuse of Exception constructor doesn\'t display errorfile) > > http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2016&r2=1.2017&ty=u > Index: php-src/NEWS > diff -u php-src/NEWS:1.2016 php-src/NEWS:1.2017 > --- php-src/NEWS:1.2016 Tue Aug 2 02:33:51 2005 > +++ php-src/NEWS Tue Aug 2 12:31:52 2005 > @@ -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) > > http://cvs.php.net/diff.php/ZendEngine2/zend_exceptions.c?r1=1.77&r2=1.78&ty=u¼±2 > ÕçðèªæuÁ_ > Index: ZendEngine2/zend_exceptions.c > diff -u ZendEngine2/zend_exceptions.c:1.77 ZendEngine2/zend_exceptions.c:1.78 > --- ZendEngine2/zend_exceptions.c:1.77 Mon Jun 27 14:13:13 2005 > +++ ZendEngine2/zend_exceptions.c Tue Aug 2 12:31:53 2005 > @@ -19,7 +19,7 @@ > > +----------------------------------------------------------------------+ > */ > -/* $Id: zend_exceptions.c,v 1.77 2005/06/27 18:13:13 stas Exp $ */ > +/* $Id: zend_exceptions.c,v 1.78 2005/08/02 16:31:53 sniper Exp $ */ > #include "zend.h" > #include "zend_API.h" > @@ -132,7 +132,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_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 @@ > 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(); Best regards, Marcus

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