diff options
author | foobar <sniper@php.net> | 2003-05-14 15:02:30 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-05-14 15:02:30 +0000 |
commit | 412f54edaba4adfe8cdcd1b32cbd86dde4c930d6 (patch) | |
tree | a07049ae27019cd8b15493a22ea67f618951d66e /tests | |
parent | ecf78a23cd021e7bb2b4e731ea19a63e4ca2ba9b (diff) | |
download | php-git-412f54edaba4adfe8cdcd1b32cbd86dde4c930d6.tar.gz |
MFB
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lang/bug23624.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lang/bug23624.phpt b/tests/lang/bug23624.phpt new file mode 100644 index 0000000000..81afefb47e --- /dev/null +++ b/tests/lang/bug23624.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #23624 (foreach leaves current array key as null) +--FILE-- +<?php + $arr = array ('one', 'two', 'three'); + var_dump(current($arr)); + foreach($arr as $key => $value); + var_dump(current($arr)); +?> +--EXPECT-- +string(3) "one" +string(5) "three" |