|
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 remi@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-06-16 12:18 UTC] remi@php.net
-Assigned To:
+Assigned To: remi
[2014-06-16 12:18 UTC] remi@php.net
[2014-06-17 07:45 UTC] remi@php.net
-Status: Assigned
+Status: Closed
[2014-06-17 07:45 UTC] remi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06: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 ...