Re: [VOTE] Reclassify E_STRICT notices

From: Date: Sun, 15 Mar 2015 18:30:42 +0000
Subject: Re: [VOTE] Reclassify E_STRICT notices
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-84866@lists.php.net to get a copy of this message
Hi Nikita, On 15/03/2015 16:46, Nikita Popov wrote:
Hi internals! To ensure we have no shortage of new RFC votes...
     https://wiki.php.net/rfc/reclassify_e_strict#vote
Voting is open for ten days :)
I know I'm late, but with I just have found the required time to test the branch with my own legacy app. The result of the test suite run is pretty bad because of the new warnings. More than half of the tests fail with a message similar to: https://revive.beccati.com/bamboo/browse/REV-EXP-NIK-1/test/case/19183062 Now, some of them would be fairly easy to fix. But, once again the problem lies in the bundled PEAR libs. For example the raiseError() method has been redefined all over the place with a custom signature. Fixing is certainly possible, but fixing will require a fairly big refactoring. In PHP4 times it was in fact quite common to change inherited method signatures to bend them to one's will and/or remove parameters and hardcode them in the parent constructor call. We now know it is bad practice, but I bet there's lot of code using these practices in controlled situations. I'm going to attempt fixing the app code (including the bundled pear libs) and report back. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

« previous php.internals (#84866) next »