diff options
author | foobar <sniper@php.net> | 2004-02-26 01:08:04 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2004-02-26 01:08:04 +0000 |
commit | a79c7c7c84a1654739e7db8ef452e935651c99bb (patch) | |
tree | 69bee6cfd10c435920b6672cde119c55fbabefd1 | |
parent | 3e1f3b2124a6ef21e32f73ae2c52c346cddab04d (diff) | |
download | php-git-a79c7c7c84a1654739e7db8ef452e935651c99bb.tar.gz |
Remove bogus test: see bug #20993
-rw-r--r-- | tests/lang/bug27395.phpt | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/lang/bug27395.phpt b/tests/lang/bug27395.phpt deleted file mode 100644 index 7a9e07b691..0000000000 --- a/tests/lang/bug27395.phpt +++ /dev/null @@ -1,60 +0,0 @@ ---TEST-- -Bug #27395 (reference to an array index makes the array to be passed by reference always) ---FILE-- -<?php - -function theFunction($arg) { - $arg[0] = 2; -} - -// Reference on array index -$arr1 = array (1); -$reference1 =& $arr1[0]; - -var_dump($reference1); -var_dump($arr1); -theFunction($arr1); -var_dump($reference1); -var_dump($arr1); - -echo "--------\n"; - -// Reference on array -$arr2 = array (1); -$reference2 =& $arr2; - -var_dump($reference2); -var_dump($arr2); -theFunction($arr2); -var_dump($reference2); -var_dump($arr2); - -?> ---EXPECT-- -int(1) -array(1) { - [0]=> - &int(1) -} -int(1) -array(1) { - [0]=> - &int(1) -} --------- -array(1) { - [0]=> - int(1) -} -array(1) { - [0]=> - int(1) -} -array(1) { - [0]=> - int(1) -} -array(1) { - [0]=> - int(1) -} |