global statement removal: hphp/test/zend [2/x]
[hiphop-php.git] / hphp / test / zend / good / Zend / tests / bug46106.php
blobdb14a5656b77e835130d67dd9c27092153f99735
1 <?php
2 ZendGoodZendTestsBug46106::$foo = array(1);
4 function foobar($errno, $errstr, $errfile, $errline) { }
6 set_error_handler('foobar');
8 function test($x) {
11 try { $x->invokeArgs(array(0)); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
14 $x = new ReflectionFunction('str_pad');
15 test($x);
17 abstract final class ZendGoodZendTestsBug46106 {
18 public static $foo;
21 DONE