PHP 5.5.13 breaks backwards compatibility
There’s a backwards compatibility break in PHP 5.5.13 (and PHP 5.4.29) affecting PHPUnit, Mockery, Doctrine, Symfony and probably a lot more.
Rafael Dohms triggered me with this Tweet;
So 5.5.13 broke BC and "a fix will be in 5.5.14".. WTF core, rollback and fix now there is no question about it…— Rafael Dohms (@rdohms) June 17, 2014
And I just ran into the issues with Mockery/PHPUnit;
Failed asserting that exception of type "PHPUnit_Framework_Error_Warning" matches expected exception "SymfonyComponentHttpKernelExceptionNotFoundHttpException". Message was: "Erroneous data format for unserializing 'Mockery_9_Symfony_Component_HttpFoundation_File_UploadedFile'".
I found the following sources that explain what happened:
- [PHP-DEV] BC break in 5.4.29 and 5.5.13 – PHP Internals
- Just a warning, 5.5.13 introduces a backwards incompatibility – Reddit
- Bug #67072 Echoing unserialized “SplFileObject” crash – bugs.php.net
- Upgrade note – GitHub
I advise to not upgrade to PHP5.5.13 but wait for PHP5.5.14, it should be released soon.