Re: Bug 67072 resolution for 5.4/5.5
| From: | Remi Collet | Date: | Mon, 23 Jun 2014 17:22:51 +0000 |
| Subject: | Re: Bug 67072 resolution for 5.4/5.5 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-75051@lists.php.net to get a copy of this message | ||
Le 23/06/2014 01:10, Ferenc Kovacs a écrit :
> ps: I've seen that you created a pull request with the patch, if somebody
> don't wanna copypaste the patch from the mail, here it is:
> https://github.com/php/php-src/pull/701
Tested with symfony 2.5.0 test suite.
1)
Symfony\Component\Form\Tests\Extension\Core\Type\FileTypeTest::testSetData
Erroneous data format for unserializing 'Mock_UploadedFile_c913ac22'
/dev/shm/extras/BUILD/symfony-59365832a09a1d914d14cbca6a21a7f572760c3b/src/Symfony/Component/Form/Tests/Extension/Core/Type/FileTypeTest.php:82
/dev/shm/extras/BUILD/symfony-59365832a09a1d914d14cbca6a21a7f572760c3b/src/Symfony/Component/Form/Tests/Extension/Core/Type/FileTypeTest.php:20
Minimal reproducer:
<?php
class FooFile extends SplFileInfo {
}
$str = 'O:7:"FooFile":0:{}';
var_dump(unserialize($str));
?>
:(
Remi
P.S. "ce->create_object == NULL" is the cause.