ID:               42992
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to