cvs: php4 /tests/lang bug23624.phpt

From: Date: Wed, 14 May 2003 15:02:30 +0000
Subject: cvs: php4 /tests/lang bug23624.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20899@lists.php.net to get a copy of this message
sniper Wed May 14 11:02:30 2003 EDT Modified files: /php4/tests/lang bug23624.phpt Log: MFB Index: php4/tests/lang/bug23624.phpt diff -u /dev/null php4/tests/lang/bug23624.phpt:1.2 --- /dev/null Wed May 14 11:02:30 2003 +++ php4/tests/lang/bug23624.phpt Wed May 14 11:02:30 2003 @@ -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"

« previous php.cvs (#20899) next »