Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/bug45805.phpt |
--TEST-- Bug #45805 (Crash on throwing exception from error handler) --SKIPIF-- <?php extension_loaded('reflection') or die('skip'); ?> --FILE-- <?php class PHPUnit_Util_ErrorHandler { public static function handleError($errno, $errstr, $errfile, $errline) { throw new RuntimeException; } } class A { public function getX() { return NULL; } } class B { public function foo() { $obj = new A; $source = &$obj->getX(); } public function bar() { $m = new ReflectionMethod('B', 'foo'); $m->invoke($this); } } set_error_handler( array('PHPUnit_Util_ErrorHandler', 'handleError'), E_ALL | E_STRICT ); $o = new B; $o->bar(); ?> --EXPECTF-- Fatal error: Uncaught RuntimeException in %sbug45805.php:%d Stack trace: #0 %sbug45805.php(%d): PHPUnit_Util_ErrorHandler::handleError(8, 'Only variables ...', '%s', %d, Array) #1 [internal function]: B->foo() #2 %sbug45805.php(%d): ReflectionMethod->invoke(Object(B)) #3 %sbug45805.php(%d): B->bar() #4 {main} thrown in %sbug45805.php on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare