|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-03 19:00 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2017-04-03 19:00 UTC] requinix@php.net
[2017-04-03 20:21 UTC] tugrultopuz at gmail dot com
[2017-04-04 07:12 UTC] a at b dot c dot de
[2017-04-04 07:13 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 23:00:02 2025 UTC |
Description: ------------ Throwable not catching the error by include and require statements for non existent files. Test script: --------------- try { include 'non-existent-file.php'; } catch (\Throwable $ex) { echo 'include error'; } try { include_once 'non-existent-file.php'; } catch (\Throwable $ex) { echo 'include_once error'; } try { require 'non-existent-file.php'; } catch (\Throwable $ex) { echo 'require error'; } try { require_once 'non-existent-file.php'; } catch (\Throwable $ex) { echo 'require once error'; } Expected result: ---------------- include error include_once error require error require_once error Actual result: -------------- no output and write errors to error log