Re: [PATCH] Bug #30230 exception handler not working with objects

From: Date: Tue, 12 Oct 2004 21:37:04 +0000
Subject: Re: [PATCH] Bug #30230 exception handler not working with objects
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-13290@lists.php.net to get a copy of this message
I must admit that I think it's kind of ugly to be able to reset it by using "" but as this seems to be the existing behavior (I guess the person that added the callable support missed this part), I'll apply the patch. Thanks, Andi 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


« previous php.internals (#13290) next »