php-src/Zend/tests/array_unshift_COW.phpt
Dmitry Stogov a0378d3514 Fixed test
2008-03-18 06:44:54 +00:00

17 lines
241 B
PHP

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