cvs: php4 /tests/lang bug21600.phpt
| From: | Moriyoshi Koizumi | Date: | Sun, 12 Jan 2003 23:56:04 +0000 |
| Subject: | cvs: php4 /tests/lang bug21600.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-17851@lists.php.net to get a copy of this message | ||
moriyoshi Sun Jan 12 18:56:04 2003 EDT
Added files:
/php4/tests/lang bug21600.phpt
Log:
Added test case for bug #21600
Index: php4/tests/lang/bug21600.phpt
+++ php4/tests/lang/bug21600.phpt
--TEST--
Bug #21600 (assign by reference function call changes variable contents)
--FILE--
<?php
$tmp = array();
$tmp['foo'] = "test";
$tmp['foo'] = &bar($tmp['foo']);
var_dump($tmp);
function bar($text){
return $text;
}
?>
--EXPECT--
array(1) {
["foo"]=>
string(4) "test"
}