PHP5.4 'nannying'

From: Date: Sun, 18 Mar 2012 09:14:39 +0000
Subject: PHP5.4 'nannying'
Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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


Thread (13 messages)

« previous php.internals (#58998) next »