xref: /PHP-7.0/Zend/tests/bug72508.phpt (revision 76370f30)
1--TEST--
2Bug #72508 (strange references after recursive function call and "switch" statement)
3--FILE--
4<?php
5function a ($option) {
6	b($option['bla']);
7	c($option);
8	var_dump($option);
9}
10function b (&$string) {
11	$string = 'changed';
12}
13function c ($option) {
14	switch ($option['bla']) {
15	default:
16		$copy = $option;
17		$copy['bla'] = 'copy';
18		break;
19	}
20}
21a(array('bla' => 'fasel'));
22
23?>
24--EXPECT--
25array(1) {
26  ["bla"]=>
27  string(7) "changed"
28}
29