#21637 [Opn]: Header('Location: ... ') problem

From: Date: Thu, 16 Jan 2003 15:30:46 +0000
Subject: #21637 [Opn]: Header('Location: ... ') problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30259@lists.php.net to get a copy of this message
 ID:               21637
 Updated by:       hholzgra@php.net
 Reported By:      pthiebaud@labeltechnologies.com
 Status:           Open
 Bug Type:         IIS related
 Operating System: Windows 2000
 PHP Version:      4.3.0
 New Comment:

sure, it should not crash or hang, but...

this combination of header fields just makes no sense,
as the actual content-type is determined by the result
of the request to the 'Location:' URL
(right now i can't think of *any* header that would
 make sense in combination with 'Location:')

maybe it is even the webserver itself and not php
that gets confused by this header combination?
did it work with previous PHP versions?


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

[2003-01-15 12:49:48] pthiebaud@labeltechnologies.com

php4isapi.dll created friday the 27th of december 2002 at 05:43:24.
We even created a filter at the master properties level of IIS using
php4isapi.dll. It used to fix a lot of "memory" problems...

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

[2003-01-15 12:37:17] iliaa@php.net

Which SAPI are you using?

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

[2003-01-15 08:00:54] pthiebaud@labeltechnologies.com

Actually, there is no error, the system just stalls, we got nothing out
as a result and we are forced to kill the inetinfo process to restart
PHP (just stopping the service W3SVC wont work, the service wont
stopped and will stay in a "stopping" mode). It seems to be a problem
between IIS and PHP, but we didn't have this problem up to version
4.2.2. We had another problem with the headers in version 4.2.3 that
was reported in bug #19351, maybe it is related?

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

[2003-01-14 19:20:36] sniper@php.net

What do you mean with 'crash' ? Do you get any errors?


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

[2003-01-14 11:20:30] pthiebaud@labeltechnologies.com

We have a PHP 4.3 installation on Windows 2000 Server & Workstation. On
both systems, the following code produce a PHP crash.

<?PHP
    header('Content-type: text/html');
    header('Location: '.$url);
?>

If we remove the "header('Content-type: text/html');" line, the code
work fine, but we need to be able to force the Content type header for
our application to work.



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


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



Thread (14 messages)

« previous php.bugs (#30259) next »