php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31183 exit status 128 when printing something before header()
Submitted: 2004-12-19 01:14 UTC Modified: 2005-01-31 22:30 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: marco-glatz at web dot de Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.0.2 OS: WinXP
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-12-19 01:14 UTC] 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 ...."


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-18 14:03 UTC] jorton@php.net
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
 [2005-01-31 22:30 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 14:01:33 2024 UTC