php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 + 48 = ?
Subscribe to this entry?

 
 [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"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 10:01:31 2024 UTC