From: SVN Migration Date: Wed, 25 Feb 2004 18:54:16 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.5RC4~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe4a11838367781c34696b6fcb8140e9bfee6d41;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/tests/lang/bug27395.phpt b/tests/lang/bug27395.phpt new file mode 100644 index 0000000000..7a9e07b691 --- /dev/null +++ b/tests/lang/bug27395.phpt @@ -0,0 +1,60 @@ +--TEST-- +Bug #27395 (reference to an array index makes the array to be passed by reference always) +--FILE-- + +--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) +}