summaryrefslogtreecommitdiff
path: root/Zend/tests
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-08-04 17:10:52 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-08-04 17:10:52 +0000
commit1007b0a826e6d9cc8d048c95e15ad493ce22d899 (patch)
treeb80c33b4103a126ffa817547ac9c9ce26d2996f9 /Zend/tests
parent13450275974ba9d92a5dec0a66b95f5e21101a0e (diff)
downloadphp-git-1007b0a826e6d9cc8d048c95e15ad493ce22d899.tar.gz
Fixed bug #23104 (hash position of static arrays not being reset)
Diffstat (limited to 'Zend/tests')
-rw-r--r--Zend/tests/bug23104.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/bug23104.phpt b/Zend/tests/bug23104.phpt
new file mode 100644
index 0000000000..04df3bdeb5
--- /dev/null
+++ b/Zend/tests/bug23104.phpt
@@ -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"