php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1061 include($undefined); causes a "Document contains no data";
Submitted: 1999-01-12 18:45 UTC Modified: 1999-07-25 12:26 UTC
From: cmv at privateworld dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.5 OS: Linux 2.0.35
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cmv at privateworld dot com
New email:
PHP Version: OS:

 

 [1999-01-12 18:45 UTC] cmv at privateworld dot com
<?
echo "hello";
include($undefined);
?>

Inculding an undefined variable or a null string, will cause a "Document contains no data" message, regardless of any text that has been send to the browser before the include().

It should probably produce an error message instead.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-25 12:26 UTC] rasmus at cvs dot php dot net
Fixed
 [2025-04-22 11:58 UTC] git@php.net
Automatic comment on behalf of saundefined
Revision: https://github.com/php/doc-ru/commit/e7cb1e3ced333f2c0d33fdddf4973843aeee9b0b
Log: Исправление опечатки
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 14 07:00:02 2026 UTC