mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
fd6ac61064
We can't simply use HASH_OF, need to use the usual hash table getter.
24 lines
353 B
PHP
24 lines
353 B
PHP
--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)
|
|
}
|
|
}
|