mirror of
https://github.com/php/php-src.git
synced 2024-12-21 16:00:18 +08:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
17 lines
232 B
PHP
17 lines
232 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)
|
|
}
|