mirror of
https://github.com/php/php-src.git
synced 2024-12-24 17:30:48 +08:00
29 lines
443 B
Plaintext
29 lines
443 B
Plaintext
|
--TEST--
|
||
|
Bug #72508 (strange references after recursive function call and "switch" statement)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function a ($option) {
|
||
|
b($option['bla']);
|
||
|
c($option);
|
||
|
var_dump($option);
|
||
|
}
|
||
|
function b (&$string) {
|
||
|
$string = 'changed';
|
||
|
}
|
||
|
function c ($option) {
|
||
|
switch ($option['bla']) {
|
||
|
default:
|
||
|
$copy = $option;
|
||
|
$copy['bla'] = 'copy';
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
a(array('bla' => 'fasel'));
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
array(1) {
|
||
|
["bla"]=>
|
||
|
string(7) "changed"
|
||
|
}
|