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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bram at Guts dot nl
New email:
PHP Version: OS:

 

 [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-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC