Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13290 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10619 invoked by uid 1010); 12 Oct 2004 21:37:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7605 invoked from network); 12 Oct 2004 21:37:14 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 12 Oct 2004 21:37:14 -0000 Received: (qmail 30618 invoked from network); 12 Oct 2004 21:37:12 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 12 Oct 2004 21:37:12 -0000 Message-ID: <5.1.0.14.2.20041012143600.0489daa0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 12 Oct 2004 14:37:04 -0700 To: "Robert Silva" , In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] [PATCH] Bug #30230 exception handler not working with objects From: andi@zend.com (Andi Gutmans) References: 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