Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: Case sensitivity: Conclusion(?)

From: Date: Fri, 08 Feb 2002 13:40:24 +0000
Subject: Re: Re: [Zend Engine 2] Re: [PHP-DEV] Re: Case sensitivity: Conclusion(?)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79718@lists.php.net to get a copy of this message
>> A lot of errors that are E_NOTICE today would definitely be better off >> as E_PEDANTIC. Undefined array indexes come to mind. What else? >> E_INFO may be a bit vague (and probably attract a lot of "misc" >> errors). What about E_COMPAT for compatibility issues? > > E_PENDATIC, E_COMPAT, E_NOTICE, E_WARNING, E_ERROR > Do you see E_PENDANTIC and E_NOTICE as much different? Can we differentiate > between them? I think that one of the levels should explicitly state that extra cpu or memory resources can be used to produce the output. For example (and this is not really a well thought out suggestion), preg_replace() could test if it is being used for simple replaces that str_replace() could manage as well and if so throw an E_PERFORMANCE notice or some such. These kinds of tests are so expensive that they can't be switched on even in an E_ALL environment. But it might be an useful way for script writers to get usage feedback from PHP and extension authors. --Marko

« previous php.dev (#79718) next »