mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
ea466a316f
SplDoublyLinkedList, SplObjectStorage and ArrayObject have empty constructor (no arg), so it make sense to allow to unserialize empty data. This allow the hack (used in various place, including PHPUnit) to instanciate class without call to constructor to work.
14 lines
242 B
PHP
14 lines
242 B
PHP
--TEST--
|
|
ArrayObject: test that you can unserialize a empty string
|
|
--CREDITS--
|
|
Havard Eide <nucleuz@gmail.com>
|
|
#PHPTestFest2009 Norway 2009-06-09 \o/
|
|
--FILE--
|
|
<?php
|
|
$a = new ArrayObject(array());
|
|
$a->unserialize("");
|
|
?>
|
|
Done
|
|
--EXPECTF--
|
|
Done
|