#42992 [Opn->Bgs]: headers_sent() gets crazy after calling empty files via virtual()
| From: | johannes@php.net | Date: | Tue, 16 Oct 2007 20:33:02 +0000 |
| Subject: | #42992 [Opn->Bgs]: headers_sent() gets crazy after calling empty files via virtual() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118601@lists.php.net to get a copy of this message | ||
ID: 42992
Updated by: johannes@php.net
Reported By: hamdi at rawasy dot com
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: Irrelevant
PHP Version: 4.4.7
New Comment:
virtual() does an apache sub-request - PHP has no clue what happens
inside there.
Previous Comments:
------------------------------------------------------------------------
[2007-10-16 14:22:12] hamdi at rawasy dot com
Description:
------------
The virtual() function works great, but not headers_sent()!
headers_sent() returns true with an empty string as filename &
indicates that the line number is zero!
Reproduce code:
---------------
<?php
virtual("empty.php"); // An empty file
var_dump(headers_sent($file, $line), $file, $line);
?>
Expected result:
----------------
bool(false)
string(0) ""
int(0)
Actual result:
--------------
bool(true)
string(0) ""
int(0)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42992&edit=1