diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-08-04 17:10:52 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-08-04 17:10:52 +0000 |
commit | 1007b0a826e6d9cc8d048c95e15ad493ce22d899 (patch) | |
tree | b80c33b4103a126ffa817547ac9c9ce26d2996f9 /Zend/tests | |
parent | 13450275974ba9d92a5dec0a66b95f5e21101a0e (diff) | |
download | php-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.phpt | 12 |
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" |