
September 6th, 2010, 05:55 AM
|
|
Registered User
|
|
Join Date: Jul 2010
Posts: 18
Time spent in forums: 1 h 25 m 56 sec
Reputation Power: 0
|
|
General - Warning about headers when "register_shutdown_function" used
When "register_shutdown_function" is used in the code, the following warning is issued:
--
Warning: Cannot modify header information - headers already sent in Unknown on line 0
--
All goes well when xdebug.so is not used.
This bug causes PEAR packages to have problems
PHP Code:
PHP version is 5.0.0 stable, not -dev (can't choose such an option)
Sample code:
<?php
function logit($x)
{
$f = fopen("/tmp/logit.txt", "a");
fwrite($f, "$x\n");
fclose($f);
}
function sayonara()
{
}
register_shutdown_function("sayonara");
?>
|