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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 18 02:01:30 2020 UTC