/
proc
/
3430793
/
task
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/task/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/array_025.phpt
--TEST-- SPL: ArrayObject serialize with an object as storage --FILE-- <?php $obj1 = new ArrayObject(new ArrayObject(array(1,2))); $s = serialize($obj1); $obj2 = unserialize($s); print_r($obj1); echo "$s\n"; print_r($obj2); ?> --EXPECT-- ArrayObject Object ( [storage:ArrayObject:private] => ArrayObject Object ( [storage:ArrayObject:private] => Array ( [0] => 1 [1] => 2 ) ) ) O:11:"ArrayObject":4:{i:0;i:0;i:1;O:11:"ArrayObject":4:{i:0;i:0;i:1;a:2:{i:0;i:1;i:1;i:2;}i:2;a:0:{}i:3;N;}i:2;a:0:{}i:3;N;} ArrayObject Object ( [storage:ArrayObject:private] => ArrayObject Object ( [storage:ArrayObject:private] => Array ( [0] => 1 [1] => 2 ) ) )
Copyright ©2k19 -
Hexid
|
Tex7ure