|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp-unserialize.patch (last revision 2014-06-16 12:18 UTC by [email protected])Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-06-16 12:18 UTC] [email protected]
-Assigned To:
+Assigned To: remi
[2014-06-16 12:18 UTC] [email protected]
[2014-06-17 07:45 UTC] [email protected]
-Status: Assigned
+Status: Closed
[2014-06-17 07:45 UTC] [email protected]
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 31 03:00:01 2025 UTC |
Description: ------------ SplDoublyLinkedList, SplObjectStorage and ArrayObject have empty constructor (no arg), so it make sense to allow to unserialize empty data. This also the hack (used in various place, including PHPUnit) to instanciate class without call to constructor to work. Test script: --------------- $a = new ArrayObject(array()); $a->unserialize(""); Expected result: ---------------- No error Actual result: -------------- Fatal error: Uncaught exception 'UnexpectedValueException' with message 'Empty serialized string cannot be empty' in ...