|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-13 18:41 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2010-07-13 18:41 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 02:00:01 2025 UTC |
Description: ------------ Invoking a method that doesn't exist raises a Fatal Error, and there is no way to catch the exception. Test script: --------------- <?php class A { public function __construct() { \error_reporting(\E_ALL); \ini_set('display_errors', true); \ini_set('display_startup_errors', true); try { $this->_init(); } catch (\Exception $e) {echo "Catched!";} } } new A(); Expected result: ---------------- Catched! Actual result: -------------- Fatal error: Call to undefined method A::_init() in /srv/http/PHP/3/fatalerror.php on line 11