Re: PHP6 todo list (E_STRICT in E_ALL)
| From: | Richard Quadling | Date: | Tue, 17 Apr 2007 13:34:28 +0000 |
| Subject: | Re: PHP6 todo list (E_STRICT in E_ALL) | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-28888@lists.php.net to get a copy of this message | ||
On 17/04/07, Hannes Magnusson <hannes.magnusson@gmail.com> wrote:
On 4/17/07, Christian Schneider <cschneid@cschneid.com> wrote: Hannes Magnusson wrote:In development mode I want to see every single error/notice/warning/etc. How else am I supposed to know if I've done something incorrect or the sand has shifted beneath my feet and I didn't realise? In production no errors should be displayed (i.e. all nice clean code) but even if they are they should only be logged and not displayed. So in both circumstances E_ALL should __still__ mean every single error/notice/warning/etc. I do like the idea of production and development ini files. That seems to make more sense than recommended and dist. I'm sure dist means distribution, but then what does recommended mean? Without knowing the reason, seeing recommended and dist are confusing. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"E_ALL should have been called E_RECOMMENDED or E_DEFAULT to avoid this confusion but in reality changing E_ALL to include everything would unnecessarily break existing installations. I think we will have to live with this misnomer and not try to 'fix' it. How exactly would any app break? You don't display errors on your production server, do you? It will only help you understand what is going on while you develop the application. I think what we need here is fix our php.ini files: php.ini-production & php.ini-developing -HannesMy dictionary says that "all" means *all*, not "all except this and this and sometimes not that".7. add E_STRICT to E_ALL DONE (dmitry)