|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-09-22 16:34 UTC] cmb@php.net
-Status: Open
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
[2021-09-22 16:34 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 07:00:01 2025 UTC |
Description: ------------ Hi, We use include or require method for including a script file, it needs some exceptions. EX. 1. This file is not exists. (also I can use file_exists for checking it) 2. This script file syntax errors, if it use @include a file, it will shutdown.(for file cache) Test script: --------------- try { $data = include('test.cache.php'); } catch (Exception $e) { print($e->getMessage()); //throw file dont exists or syntax errors } finally { $data = false; } if (!$data) { //do something } else { }