Re: Patch for bugs in errorhandling in PEAR 1.3

From: Date: Wed, 03 Mar 2004 22:09:52 +0000
Subject: Re: Patch for bugs in errorhandling in PEAR 1.3
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-26072@lists.php.net to get a copy of this message
Ian Eure wrote:
Either way, static functions in PHP aren't supposed to touch $this, so the only proper solution is to add static-only methods, like pushGlobalErrorHandling(). That obviously isn't going to happen, since it breaks BC. Sigh.
Actually, I think it is going to happen, but without the BC break. In other words, pushErrorHandling() will remain the same, but should be used only for instance error handling. Legacy apps should switch to pushGlobalErrorHandling() for static calls, and then all is OK. Unless the other core devs veto it, I plan to commit this code. Greg

« previous php.pear.dev (#26072) next »