summaryrefslogtreecommitdiff
path: root/Zend/tests/each_002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/each_002.phpt')
-rw-r--r--Zend/tests/each_002.phpt6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zend/tests/each_002.phpt b/Zend/tests/each_002.phpt
index f47ded4b14..31b749e5fd 100644
--- a/Zend/tests/each_002.phpt
+++ b/Zend/tests/each_002.phpt
@@ -3,10 +3,12 @@ Testing each() with array and object
--FILE--
<?php
-$foo = each(new stdClass);
+$a = new stdClass;
+$foo = each($a);
var_dump($foo);
-var_dump(each(new stdClass));
+$a = new stdClass;
+var_dump(each($a));
$a = array(new stdClass);
var_dump(each($a));