diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-27 01:15:14 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-27 01:15:14 +0000 |
| commit | 6174d2b446a194dcf781c5d59c38eb7f792d84eb (patch) | |
| tree | 3e025aa1f0e956a48d04e03a64f148b5b195424c /tests | |
| parent | d250e7ba9de97cd0d00e9a34bb195500a1fd8134 (diff) | |
| download | php-git-6174d2b446a194dcf781c5d59c38eb7f792d84eb.tar.gz | |
Updated test so it describes the problem more clearly.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/lang/bug21600.phpt | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/lang/bug21600.phpt b/tests/lang/bug21600.phpt index 71c39bb2e5..bb8323a294 100644 --- a/tests/lang/bug21600.phpt +++ b/tests/lang/bug21600.phpt @@ -7,13 +7,28 @@ $tmp['foo'] = "test"; $tmp['foo'] = &bar($tmp['foo']); var_dump($tmp); +unset($tmp); + +$tmp = array(); +$tmp['foo'] = "test"; +$tmp['foo'] = &fubar($tmp['foo']); +var_dump($tmp); + function bar($text){ return $text; } + +function fubar($text){ + $text = &$text; + return $text; +} ?> --EXPECT-- array(1) { ["foo"]=> string(4) "test" } - +array(1) { + ["foo"]=> + string(4) "test" +} |
