blob: 688954c3d7b13fef5d8ec44efabdd637c4eff53f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
Clone ArrayObject using other with STD_PROP_LIST
--FILE--
<?php
$a = new ArrayObject([1, 2, 3], ArrayObject::STD_PROP_LIST);
$b = new ArrayObject($a);
$c = clone $b;
var_dump($c);
?>
--EXPECT--
object(ArrayObject)#3 (1) {
["storage":"ArrayObject":private]=>
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}
}
|