php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2728 Require() does not work properly in 4.02b
Submitted: 1999-11-16 00:03 UTC Modified: 2000-07-26 12:32 UTC
From: taylorw at ocentrix dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (15/11/1999) OS: Linux Redhat 6.0
Private report: No CVE-ID: None
 [1999-11-16 00:03 UTC] taylorw at ocentrix dot com
When require() used with a file name in double quotes as in
require("test.php");
the browser displays an error window with the message, 
"The document contained no data.
Try again later or contact the server's administrator."

The include path has been checked using the phpinfo() function,
and the path to the file has been confirmed to be part of the include
path.

Your documentation may also be defective:
What is the include path relative to the doc_root path, and relative to
the user_dir path?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 12:32 UTC] hholzgra@php.net
i'm pretty sure you had a compile error
in the required file and got no error
messages as you still had error_reporting 
set to something like 15 or 7 instead

php 4 has more error type bits so that you
maks out e.g. compile errors if you take 
over your values from php 3

set error_reporting to E_ALL or E_ALL & ~E_NOTICE
to get error messages for compile time errors

(and as always: reopen the bug if my analysis 
 didn't help)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 15:01:34 2024 UTC