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"
}




-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to