Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug #11684 Updated: Header() causes PHP to hang

0 views
Skip to first unread message

an...@php.net

unread,
Jul 21, 2001, 9:52:01 PM7/21/01
to php...@lists.php.net
ID: 11684
Updated by: andy
Reported By: chea...@hotmail.com
Status: Open
Bug Type: HTTP related
Operating System: Windows 2000/IIS4
PHP Version: 4.0.5
New Comment:

A cause may be that you are echoing "foobar" before you call
the header() function. Try switching the order of these
functions.

Previous Comments:
------------------------------------------------------------------------

[2001-07-17 12:06:51] chea...@hotmail.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-17 11:55:01] st...@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-16 11:26:02] chea...@hotmail.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-16 07:47:51] ze...@php.net

Is anybody else able to reproduce this? I'm not.

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

------------------------------------------------------------------------

[2001-06-25 22:58:17] chea...@hotmail.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.


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11684


Edit this bug report at http://bugs.php.net/?id=11684&edit=1

chea...@hotmail.com

unread,
Jul 17, 2001, 12:06:51 PM7/17/01
to php...@lists.php.net
ID: 11684
User updated by: chea...@hotmail.com

Reported By: chea...@hotmail.com
Status: Open
Bug Type: HTTP related
Operating System: Windows 2000/IIS4
PHP Version: 4.0.5
New Comment:

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.

Previous Comments:
------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------

------------------------------------------------------------------------


------------------------------------------------------------------------

[2001-06-25 22:55:02] chea...@hotmail.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.

------------------------------------------------------------------------

Edit this bug report at http://bugs.php.net/?id=11684&edit=1

st...@php.net

unread,
Jul 17, 2001, 11:55:03 AM7/17/01
to php...@lists.php.net
ID: 11684
Updated by: stas

Reported By: chea...@hotmail.com
Status: Open
Bug Type: Scripting Engine problem

Operating System: Windows 2000/IIS4
PHP Version: 4.0.5
New Comment:

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")?

Previous Comments:

sni...@php.net

unread,
Jul 26, 2001, 8:34:52 PM7/26/01
to php...@lists.php.net
ID: 11684
Updated by: sniper
Reported By: chea...@hotmail.com
Old Status: Open
Status: Closed
Bug Type: HTTP related

Operating System: Windows 2000/IIS4
PHP Version: 4.0.5


Previous Comments:
------------------------------------------------------------------------

[2001-07-17 12:06:51] chea...@hotmail.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-17 11:55:01] st...@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-16 11:26:02] chea...@hotmail.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-16 07:47:51] ze...@php.net

Is anybody else able to reproduce this? I'm not.

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

------------------------------------------------------------------------

[2001-06-25 22:58:17] chea...@hotmail.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.


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view


the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=11684

0 new messages