Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59007 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73553 invoked from network); 18 Mar 2012 17:16:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2012 17:16:46 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.42 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:57608] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/A6-41178-B78166F4 for ; Sun, 18 Mar 2012 12:16:44 -0500 Received: by dang27 with SMTP id g27so10357090dan.29 for ; Sun, 18 Mar 2012 10:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=freoMajRiu7Jg7ZMhC6tfGjFQyqVtBZU+d0B7w/Vl7Y=; b=N84YMDxIuzqFCnnonJLkbPLRZhqG4wdS87fSw34Q9QoJoR+cUkG2SbP9o7g5WYlFC5 SyQTjd+FDzxG97OJsP0tGErt33/cIZ3udoZ7YqcAF7H4CK669VORxkQECepu+WPP0lbN +zSAfMuPtYINLzsyJy2AoS7tXkwYc+8LUa4cyGgoFWsCFnDfUkwwqPSr5KsTn+egGLUd SBF1npNsgbCfPdueIQniMcW8sKFYVvyCIZFV3VwEp0x6rc1qvpJez4kElcj79Ou993hc G93JYiWzhnOqViqDgmskRgTXuxSMzJvHrfFgYDbkhwLw4oxb6gqwiKR46fH+7sTXRQwT 3GQw== MIME-Version: 1.0 Received: by 10.68.222.227 with SMTP id qp3mr26721777pbc.137.1332091001578; Sun, 18 Mar 2012 10:16:41 -0700 (PDT) Received: by 10.68.15.105 with HTTP; Sun, 18 Mar 2012 10:16:41 -0700 (PDT) In-Reply-To: <4F6604DC.4040308@lsces.co.uk> References: <4F65A77F.3010001@lsces.co.uk> <4F65C87A.70703@thelounge.net> <4F6604DC.4040308@lsces.co.uk> Date: Sun, 18 Mar 2012 18:16:41 +0100 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7b2eded3f5255304bb879af9 Subject: Re: [PHP-DEV] PHP5.4 'nannying' From: tyra3l@gmail.com (Ferenc Kovacs) --047d7b2eded3f5255304bb879af9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Mar 18, 2012 at 4:53 PM, Lester Caine wrote: > 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 ... >>> >> usually it would have been enough if you had used full error-reporting >> from very first start and fixed deprecated warnings long ago >> > The code IS running clean in PHP5.3 and we had this same discussion back > when all the deprecated warnings came in ... it took some months to get t= o > a point where the error log was clean again ... > > > this way i am maintaining a CMS with around 250000 LOC since 2003 >> and did every major PHP-upgrade wgere it is used and distributed on >> some hundret domains without any problem >> >> any code which does not run with E_STRICT is not allowed to >> run on our sevrvers and so the are no compromises needed >> yes, so easy is life if someone decides not support any crap >> > Ditto ... which is why the reams of new messages are what is somewhat > confusing. The code runs fine and switching off the warnings prevents the > logs growing at a rapid rate, > I'm happy to run with display_errors =3D on because if an error does crop= up > we prefer to know about it fast. > > So I need to work out why with PHP5.4 we have such an overload of warning > messages ... so I CAN fix them ... which is why I'm asking here for advis= e > on migration information to a clean code base in PHP5.4 ... > > http://docs.php.net/manual/en/migration54.other.php - *E_ALL* now includes *E_STRICT* level errors in the error_reporting configuration directive. I would guess your code was running clean, because you didn't have E_STRICT in your error_reporting, now in php 5.4, E_ALL includes that by default, and if you don't explicitly mask it, you will see those messages. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7b2eded3f5255304bb879af9--