Re: E_STUPID

From: Date: Wed, 22 Oct 2008 19:10:26 +0000
Subject: Re: E_STUPID
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-282288@lists.php.net to get a copy of this message
ceo@l-i-e.com wrote:
I think we need a new error reporting constant E_STUPID. This should catch stupid things I do like trying to embed an array into a string such as: $foo = array('a', 'b', 'c'); $query = "select * from foo where foo in ('$foo')"; It's been one of those days...
Yeah but being stupid, we'd probably just forget to set it. Then we'd need a E_STUPID_ACTIVE flag that alerts us if E_STUPID isn't set. But we'd probably just forget to set *that*, so we'd need a E_STUPID_ACTIVE_ACTIVE flag, too, and to be honest, that's too many underscores for me. Jay

« previous php.general (#282288) next »