|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-07-08 06:39 UTC] e dot grinec at gmail dot com
-Package: *General Issues
+Package: Class/Object related
[2019-07-08 06:39 UTC] e dot grinec at gmail dot com
[2019-07-08 11:09 UTC] sjon@php.net
[2019-07-08 12:39 UTC] e dot grinec at gmail dot com
[2019-07-10 07:26 UTC] sjon@php.net
-Status: Open
+Status: Closed
-Type: Bug
+Type: Feature/Change Request
-Assigned To:
+Assigned To: sjon
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 12:00:01 2025 UTC |
Description: ------------ PHP Version 7.3.2 <?php class Test { public function __toString() { return NotExistsClass::notExistsMethod(); // make here any type of error } } print new Test(); // Fatal error: Method Test::__toString() must not throw an exception, caught Error: Class 'NotExistsClass' not found in D:\Portable\OSPanel\domains\test.test\test.php on line 0 Test script: --------------- <?php class Test { public function __toString() { return NotExistsClass::notExistsMethod(); // make here any type of error } } print new Test(); Expected result: ---------------- Fatal error: Method Test::__toString() must not throw an exception, caught Error: Class 'NotExistsClass' not found in D:\Portable\OSPanel\domains\test.test\test.php on line 6 Actual result: -------------- Fatal error: Method Test::__toString() must not throw an exception, caught Error: Class 'NotExistsClass' not found in D:\Portable\OSPanel\domains\test.test\test.php on line 0