|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1893 requiering() a non existant file will result in "Document contains no data"
Submitted: 1999-07-27 08:37 UTC Modified: 1999-07-31 15:15 UTC
From: bram at Guts dot nl Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 1 OS: Linux 2.0.36
Private report: No CVE-ID: None
 [1999-07-27 08:37 UTC] bram at Guts dot nl
If require() is unable to find the file, the output will die, resultting
in "Document contains no data"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-31 15:15 UTC] zeev at cvs dot php dot net
require() is not a 'compile-time' statement, i.e., it happens
before PHP begins to execute the script.

That means that if you have your error reporting set to a low
value, and miss the require() failure warning, there'll be no
output at all (since the failure occurs before the execution
of the script).

You must have your error reporting set to show E_COMPILE_ERROR if
you want to see require() failures.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 15 10:01:23 2021 UTC