import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-array / bug35821.php
blob5f427042ba673e8c472964c3b61a1f6c1a8aea95
1 <?php
3 class Element
5 public function ThrowException ()
7 throw new Exception();
10 public static function CallBack(Element $elem)
12 $elem->ThrowException();
16 $arr = array(new Element(), new Element(), new Element());
17 array_map(array('Element', 'CallBack'), $arr);
19 echo "Done\n";