Re: [PATCH] Bug #30230 exception handler not working with objects
| From: | Jason Garber | Date: | Thu, 14 Oct 2004 00:40:36 +0000 |
| Subject: | Re: [PATCH] Bug #30230 exception handler not working with objects | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13335@lists.php.net to get a copy of this message | ||
Hello Andi,
reset_exception_handler()
:)
--
Best regards,
Jason mailto:jason@ionzoft.com
Tuesday, October 12, 2004, 5:40:34 PM, you wrote:
AG> I see Marcus has already attempted to fix this even though the bug report
AG> is still open.
AG> Marcus, what exactly did you do? It seems you allow only NULL to reset
AG> exception handler and not empty string. Right?
AG> So it seems like you agree with me that "" is ugly but the question is if
AG> we're breaking something now.
AG> It's probably early enough in the game to do so.
AG> Andi
AG> At 11:44 PM 10/11/2004 -0700, Robert Silva wrote:
>>The problem is that set_exception_handler allows you to reset the handler by
>>passing an empty string as argument. It did not check to make sure it was a
>>string before checking strlen, therefore when passed an array, it assumed
>>the user was resetting the handler. This patch only resets when an empty
>>string is passed in (an array will set a new handler).
>>
>>Bob Silva
>>
>>
>>--
>>PHP Internals - PHP Runtime Development Mailing List
>>To unsubscribe, visit: http://www.php.net/unsub.php