Unmasking the error handler (was Re: [PHP-CVS] cvs: php-src /ext/dom document.c)

From: Date: Thu, 26 Aug 2004 21:19:20 +0000
Subject: Unmasking the error handler (was Re: [PHP-CVS] cvs: php-src /ext/dom document.c)
References: 1 2 3 4 5  Groups: php.cvs php.internals 
Request: Send a blank email to internals+get-12377@lists.php.net to get a copy of this message
Derick Rethans wrote:
On Wed, 25 Aug 2004, Sterling Hughes wrote:
That's wrong. You should *never* require an E_WARNING to be sent without being able to silence it, especially not on something so unimportant.
It's just as wrong as trying to parse non-wellformed XML.
Then don't add the feature. There are things that extensions are allowed to do (throw a warning), and there are things that extensions should not be allowed to do, unmasking the error handler is one such thing. IMNSHO, that is a technical limitation for any extension distributed with PHP. -Sterling

« previous php.internals (#12377) next »