Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59003 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25143 invoked from network); 18 Mar 2012 12:53:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Mar 2012 12:53:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=kiall@managedit.ie; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kiall@managedit.ie; sender-id=pass Received-SPF: pass (pb1.pair.com: domain managedit.ie designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: kiall@managedit.ie X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:58800] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/57-18036-8BAD56F4 for ; Sun, 18 Mar 2012 07:53:13 -0500 Received: by iaeh11 with SMTP id h11so9449228iae.29 for ; Sun, 18 Mar 2012 05:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=managedit.ie; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uVls/Ef1wCyGVkj42Yi3/jSbLXn2j4z1s8gQjQxZo6g=; b=XHnJg+VyY7it0z7nFtZIcQC4P5cOPQbUr/cUUOuDEQVI5aXVfMmu2nwEPOgbpDd2ty ybgNo/8FBEP99zTQwZLQ/sNlXP+aZKW+lcCHPDD2YXskZF1op+h+ln1nokZl0fM8zcnu 3+eInM2+eFigP1errakbxxJzzAzqhCI0HFAOw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=uVls/Ef1wCyGVkj42Yi3/jSbLXn2j4z1s8gQjQxZo6g=; b=knet8nWqyqUIaGkUi1W85erfFiSwX2aGJSbY6IJ/HqwwSubGseevK6i3qMZEUSzFZb wLxAa0ll9J+UXtdKrRGwSaiCEs5a8idQcv7PUKvA7DfQPIf5bgeg6VyRvkN3jFmZWyvV H1GwYcz8BvhG90Yd7Ow8pTz0X87/nLIMQ1OZI3Zc/tiZQMxaJZvXC0IfZE0M+b/pKwKd PRTSv8dF4+HfEVDD30QcCByAP/DutaiFuHFf204JmG+ZzsKVye3u8DxVTRAm3PMFWhRF fTPBv7V9BUGLSGSpf2Tih3875GGFRaGlLRhlNR9MqzJ7FCfSMXwXt6d30rXN+sJ3mtrO AyzA== MIME-Version: 1.0 Received: by 10.50.197.132 with SMTP id iu4mr4291077igc.74.1332075190413; Sun, 18 Mar 2012 05:53:10 -0700 (PDT) Received: by 10.231.209.193 with HTTP; Sun, 18 Mar 2012 05:53:10 -0700 (PDT) Received: by 10.231.209.193 with HTTP; Sun, 18 Mar 2012 05:53:10 -0700 (PDT) In-Reply-To: <4F65A77F.3010001@lsces.co.uk> References: <4F65A77F.3010001@lsces.co.uk> Date: Sun, 18 Mar 2012 12:53:10 +0000 Message-ID: To: Lester Caine Cc: PHP Internals List Content-Type: multipart/alternative; boundary=14dae93404bf89eb2c04bb83ecd3 X-Gm-Message-State: ALoCoQnppcuK4FpmNATyglUhdUgR1OHqFoVhLwaZSw3PBz8udW6xN9Ryi0nk/G9FSs2ySOFfbqZg Subject: Re: [PHP-DEV] PHP5.4 'nannying' From: kiall@managedit.ie (Kiall Mac Innes) --14dae93404bf89eb2c04bb83ecd3 Content-Type: text/plain; charset=ISO-8859-1 May I suggest changing the error reporting value, that way we can stop hearing about your damn code ;) Seriously though, I doubt anyone has a guide like that. I know I've always had E_STRICT enabled and honestly don't have the slightest clue how to trigger a strict warning. When you develop with it on.. you just don't make those mistakes and identify new issues as they happen. Not 10 years of mistakes and depreciations at once. Your best bet is to disable strict warnings in production, and chip away at them as they show up on your development server. Thanks, Kiall Sent from my phone. On Mar 18, 2012 9:15 a.m., "Lester Caine" wrote: > OK having jumped through several hoops trying to get a stable installation > of Apache2.4.1 with PHP5.4 and Firebird 2.5.1 I now have a machine running > and while I've not been able to do a speed comparison as yet performance > does seem to be improved on what a simple comparison of machine speed > improvement would suggest. > > Being a 6 core processor, on does wonder if better threaded performance of > PHP with Apache would be an advantage? But the main problem now is handling > an array of 'nanny' messages telling me that the code is badly written. > Since the code base has been developed form an environment where it was > still PHP4 compatible, many of the 'incremental improvements' of PHP5.2 and > PHP5.3 have yet to be addressed, so I suspect that while the code runs > clean with 'display_errors' ON in 5.3.10 I suspect every one of several > hundred files now needs to be modified to include things like > 'private/protected/static' correctly in every base and descendent class? Of > cause things are not helped when PEAR packages add their own array of > warnings, but the main problem is where the heck to start on this. > > 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 ... > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=**contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk// > Firebird - http://www.firebirdsql.org/**index.php > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --14dae93404bf89eb2c04bb83ecd3--