|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-16 20:33 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 11:00:01 2025 UTC |
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)