import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-array / array_walk_objects.php
blob7e0ffb7487355bebec594ec4370082b3ab9291e8
1 <?php
3 function walk($key, $value) {
4 var_dump($value, $key);
7 class test {
8 private $var_pri = "test_private";
9 protected $var_pro = "test_protected";
10 public $var_pub = "test_public";
13 $stdclass = new stdclass;
14 $stdclass->foo = "foo";
15 $stdclass->bar = "bar";
16 array_walk($stdclass, "walk");
18 $t = new test;
19 array_walk($t, "walk");
21 $var = array();
22 array_walk($var, "walk");
23 $var = "";
24 array_walk($var, "walk");
26 echo "Done\n";