Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_exceptions.c php-src NEWS
| From: | Jani Taskinen | Date: | Wed, 03 Aug 2005 20:41:32 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_exceptions.c php-src NEWS | ||
| References: | 1 2 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-3962@lists.php.net to get a copy of this message | ||
On Wed, 3 Aug 2005, Marcus Boerger wrote:
Hello Jani, first, how does it fix the issue? Second this cannot be right because it
It makes the error show the filename and line number where the
problematic throw() call is.
might lead to en endless loop if we're in a mode where the E_ERROR is converted to an exception.
Eh? E_CORE_ERROR and E_ERROR do exactly same thing, except that
latter can echo the file name / line number if we're compiling/executing..
Where is E_ERROR magically converted to an exception?! What's that mode?
--Jani
regards marcus Tuesday, August 2, 2005, 6:31:53 PM, you wrote:-- Donate @ http://pecl.php.net/wishlist.php/snipersniper Tue Aug 2 12:31:53 2005 EDTModified files:/php-src NEWS /ZendEngine2 zend_exceptions.cLog: - 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 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, argcTSRMLS_CC, "|sl", &message, &message_len, &code) == FAILURE) {- zend_error(E_CORE_ERROR, "Wrong parameter count forexception([string $exception [, long $code ]])");+ zend_error(E_ERROR, "Wrong parameter count forexception([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, argcTSRMLS_CC, "|sllsl", &message, &message_len, &code, &severity, &filename, &filename_len, &lineno) == FAILURE) {- zend_error(E_CORE_ERROR, "Wrong parameter count forexception([string $exception [, long $code ]])");+ zend_error(E_ERROR, "Wrong parameter count forexception([string $exception [, long $code ]])");}Best regards, Marcusobject = getThis();