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

2003-07-12 Thread sniper
 ID:   21637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pthiebaud at labeltechnologies dot com
-Status:   Open
+Status:   Feedback
 Bug Type: IIS related
 Operating System: Windows 2000, WinXP
 PHP Version:  4.3.0, 4.3.2dev
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:


[2003-05-23 13:35:44] jonsagara at hotmail dot com

Windows 2k Pro, SP3
PHP 4.3.1, running as CGI
IIS 5

I am experiencing a similar problem.  If I hard-code the redirect page,
then it works fine:


But if I try to use a variable, INETINFO.EXE crashes (yes, it redirects
to itself, but there are different execution paths):


I have a reproducible case.  Do you want the files?



[2003-04-28 12:13:14] [EMAIL PROTECTED]

I had a strange problem with IIS and redirects; when output buffering
was enabled, a redirecting page (that had some debug output) would show
output from the page that it was being redirected to, after its own
output.
This needs further investigation :/




[2003-01-27 02:49:47] pthiebaud at labeltechnologies dot com

No, the output is on the result page. Ex: page 1 redirect to page 2 and
page 2 echos out "Hello World". In the case we put the
"header('Content-type: text/html');" line we do see "Hello world", if
we delete that line we don't se "Hello world" (not as simple as this,
but you got the idea). By the way we also do an ob_flush to make sure
everything is treated, but it doesn't change a thing.



[2003-01-25 08:56:12] [EMAIL PROTECTED]

you have *output* on a redirect page?

this once again doesn't make sense at all to me ...

(but still it should not hang, esp. if it worked in 4.2.x)

how does IIS handle redirects? does it just pass them to the client or
does it handle some of them itself?



[2003-01-17 10:50:58] pthiebaud at labeltechnologies dot com

We did try to remove the "header('Content-type: text/html')" portion of
the code. We then have problems with the "print_r" or the "echo"
functions that will not work correctly. We receive only part of the
page, PHP seems to forget to process some lines of code. If we put back
the header line, then the code works perfectly.



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/21637

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



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

2003-01-15 Thread iliaa
 ID:   21637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

Which SAPI are you using?


Previous Comments:


[2003-01-15 08:00:54] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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




[2003-01-14 11:20:30] [EMAIL PROTECTED]

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



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




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

2003-01-14 Thread sniper
 ID:   21637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: Windows 2000
 PHP Version:  4.3.0
 New Comment:

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



Previous Comments:


[2003-01-14 11:20:30] [EMAIL PROTECTED]

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



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