Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4511 invoked from network); 19 Mar 2012 21:07:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Mar 2012 21:07:28 -0000 Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain l-i-e.com designates 67.139.134.202 as permitted sender) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:4706] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/D3-19822-E00A76F4 for ; Mon, 19 Mar 2012 16:07:26 -0500 Received: (qmail 89954 invoked by uid 98); 19 Mar 2012 21:07:28 -0000 Received: from localhost by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.05 ( Clear:RC:1(127.0.0.1):. Processed in 0.036727 secs); 19 Mar 2012 21:07:28 -0000 Received: from localhost (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 19 Mar 2012 21:07:27 -0000 Received: from webmail (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 19 Mar 2012 16:07:27 -0500 Message-ID: <43250d1b7b1f164bc4fc94f906b26136.squirrel@www.l-i-e.com> In-Reply-To: <4F65C87A.70703@thelounge.net> References: <4F65A77F.3010001@lsces.co.uk> <4F65C87A.70703@thelounge.net> Date: Mon, 19 Mar 2012 16:07:27 -0500 To: "internals@lists.php.net" User-Agent: SquirrelMail/1.4.21 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] PHP5.4 'nannying' From: ceo@l-i-e.com ("Richard Lynch") On Sun, March 18, 2012 6:35 am, Reindl Harald wrote: > > > Am 18.03.2012 10:14, schrieb Lester Caine: >> I think what I am probably looking for is a clean guide as to how >> code SHOULD be written nowadays in order to avoid >> the nanny messages since it's certainly not my normal practice after >> 10 years of coding in PHP5 ... I once worked with a team that didn't believe in E_NOTICE... I turned it on, and flooded the logs on a shard DEV. I turned it off. Copied the source to my own box, ran it with E_NOTICE, did some grep/sed/awk mumbo-jumbo to find the most common messages, fixed those, and committed them. And found, corrected, and closed about 5 long-standing bugs in the process. They started to think maybe I was on to something here... :-) We turned E_NOTICE back on at that point, as it was only an odd script once in a while that went to the logs. Or new code from that one guy who still didn't quite "get" it for awhile... He came around after we fixed a couple of his newly-introduced bugs that were triggering E_NOTICE... -- brain cancer update: http://richardlynch.blogspot.com/search/label/brain%20tumor Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FS9NLTNEEKWBE