#31183 [Opn->Fbk]: exit status 128 when printing something before header()
ID: 31183
Updated by: jorton@php.net
Reported By: marco-glatz at web dot de
-Status: Open
+Status: Feedback
Bug Type: Apache2 related
Operating System: WinXP
PHP Version: 5.0.2
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
Can't reproduce with 5.0.4-dev here, can you try 5.0.3 or a CVS
snapshot of 5.0?
...
string(2) "de"
<br />
<b>Warning</b>: Cannot modify header information - headers already
sent by (output started at
Previous Comments:
------------------------------------------------------------------------
[2004-12-19 01:14:55] marco-glatz at web dot de
Description:
------------
when i print for example some debugging-informations before i call the
header()-function apache says:
Parent: child process exited with status 128 -- Restarting.
Reproduce code:
---------------
$language = 'de';
$charset = 'iso-8859-1';
var_dump($language);
header('Content-language: '. $language);
header('Content-type: text/html; charset='. $charset);
Expected result:
----------------
something like "cannot send headers, output already started at ...."
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31183&edit=1
Thread (3 messages)