]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #23104 (hash position of static arrays not being reset)
authorIlia Alshanetsky <iliaa@php.net>
Mon, 4 Aug 2003 17:14:16 +0000 (17:14 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 4 Aug 2003 17:14:16 +0000 (17:14 +0000)
tests/lang/bug23104.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug23104.phpt b/tests/lang/bug23104.phpt
new file mode 100644 (file)
index 0000000..04df3bd
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+Bug #23104 (Hash position not reset for constant arrays)
+--FILE--
+<?php
+function foo($bar = array("a", "b", "c"))
+{
+       var_dump(current($bar));
+}
+foo();
+?>
+--EXPECT--
+string(1) "a"