mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00

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.
13 lines
242 B
PHP
13 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
|