ZF-11906: Update library and test suite to be compatible with PHP 5.4
Description
Update library and test suite to be compatible with PHP 5.4, starting now with 5.4.0RC1.
Complete list of changes in PHP 5.4.0RC1: http://www.php.net/releases/NEWS_5_4_0_RC1.txt
+Issues / Progress+
- Flood of notices from {{runtests.sh}} [fixed r24627 r24628]
PHP Notice: Constant already defined in tests/TestConfiguration.php.dist on line XXX
Remove all references to ini key 'y2k_compliance', which was removed in 5.4.0 [fixed r24805]
Fix "Array to string conversion" errors turned up by unit tests [r24807]
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2012-01-16T20:08:45.000+0000
First: don't use runtests.sh -- we should likely remove that. Second, I ran into this issue in ZF2, mainly in tests that use the "runInSeparateProcess" annotation; the solution for that is to do a "defined(...) || define(...)" style declaration. This, however, is not related to 5.4 specifically.
When we ran tests on 5.4rc2, what we found was:
The biggest thing to focus on is the second point, above.
Posted by Adam Lundrigan (adamlundrigan) on 2012-02-23T21:58:21.000+0000
Fixed declaration of TESTS_* constants in TestConfiguration.php.dist (r24627 r24628)
Posted by Adam Lundrigan (adamlundrigan) on 2012-03-10T01:40:39.000+0000
Additional fix for definition of TESTS_ZEND_SERVICE_RACKSPACE_* constants, which belong to component not yet merged into release branch. (r24673)