php-src/Zend/tests/array_append_COW.phpt
Antony Dovgal d9d3c3ca08 fix tests
2007-07-13 15:42:31 +00:00

22 lines
277 B
PHP

--TEST--
Tests that array manipulation code is correctly dealing with copy on write and splitting on reference.
--FILE--
<?php
$a=array();
$b=1;
$c=&$b;
$a[]=$b;
$b=2;
var_dump ($a);
?>
--EXPECT--
array(1) {
[0]=>
int(1)
}
--UEXPECT--
array(1) {
[0]=>
int(1)
}