php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11684 Header() causes PHP to hang
Submitted: 2001-06-25 22:55 UTC Modified: 2001-07-26 20:34 UTC
From: cheald45 at hotmail dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.5 OS: Windows 2000/IIS4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cheald45 at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-06-25 22:55 UTC] cheald45 at hotmail dot com
<?
ob_start();
echo "foobar";
header("http://foo.com/bar.html");
ob_end_flush;
?>

Win2k/IIS4/CGI mode/Standard setup, standard modules + image modules

calls to the header() function cause that instance of PHP to hang (infinite loop?). Timeout occurs 4 or 5 times longer than max_execution_time allows. Can continue to run scripts in a seperate browser session. Executable memory footprint is 4-5 MB.

I have not been able to reproduce this on a Win98 machine with an identical PHP environment.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-25 22:58 UTC] cheald45 at hotmail dot com
<?
ob_start();
echo "foobar";
header("http://foo.com/bar.html");
ob_end_flush();
?>

Win2k/IIS4/CGI mode/Standard setup, standard modules + image modules

calls to the header() function cause that instance of PHP to hang (infinite loop?).
Timeout occurs 4 or 5 times longer than max_execution_time allows. Can continue to run scripts in
a seperate browser session. Executable memory footprint is 4-5 MB.

I have not been able to reproduce this on a Win98 machine with an identical PHP
environment.

 [2001-07-16 07:47 UTC] zeev@php.net
Is anybody else able to reproduce this?  I'm not.

BTW, I assume you're using IIS 5...


 [2001-07-16 11:26 UTC] cheald45 at hotmail dot com
Double checked my config, yes, it's IIS 5. It may just be a combonation of factors on my end - it is IIS after all. Anyway, no big deal, just thought someone might know something about it.
 [2001-07-17 11:55 UTC] stas@php.net
BTW: header("http://foo.com/bar.html") does not make a valid HTTP header. Didn't you mean something like: header("Location: http://foo.com/bar.html")?
 [2001-07-17 12:06 UTC] cheald45 at hotmail dot com
Yes - I thought I corrected that when I first submitted the bug. Guess not. Anyway, I -am- using the correct header calls - it works correctly on my home machine, but not my work machine. The header call doesn't always fail, but in certain script, it will always fail.

It's probably just a local config problem.
 [2001-07-21 21:52 UTC] andy@php.net
A cause may be that you are echoing "foobar" before you call
the header() function.  Try switching the order of these
functions.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 14:01:29 2024 UTC