|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-18 09:58 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 04:00:01 2025 UTC |
Description: ------------ When calling the header() function in a function registred with register_shutdown_function(), PHP issues a warning as it there had been an output before. Reproduce code: --------------- <?php register_shutdown_function('destructor'); function destructor() { header("HTTP/1.1 200 OK"); } ?> Expected result: ---------------- The header correctly inserted in the output. Actual result: -------------- Warning: Cannot modify header information - headers already sent in g:\[...]\bugtest.php on line 6