ID:               24177
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           No Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux
 PHP Version:      4.3.3RC2-dev
 New Comment:

Summer is a killer on productivity. :)

Finally, here's the testcase I promised. It ended up pretty short...

Put the following lines in handler.php

<?
header ("location: http://www.php.net/";);
flush ();
?>

Add ErrorDocument 404 /handler.php to your Apache config.

# lynx --head --dump http://mysite.com/nonexistant
HTTP/1.1 404 Not Found
Date: Fri, 01 Aug 2003 09:54:16 GMT
Server: Apache/2.0.46 (Unix) mod_ssl/2.0.46 OpenSSL/0.9.6b
PHP/4.3.3RC3-dev
X-Powered-By: PHP/4.3.3RC3-dev
location: http://www.php.net/

Connection: close
Content-Type: text/html; charset=ISO-8859-1


Incorrect status 404, should be 302.
Remove flush(); from handler.php and try again:

# lynx --head --dump http://mysite.com/nonexistant
HTTP/1.1 302 Found
Date: Fri, 01 Aug 2003 09:56:17 GMT
Server: Apache/2.0.46 (Unix) mod_ssl/2.0.46 OpenSSL/0.9.6b
PHP/4.3.3RC3-dev
X-Powered-By: PHP/4.3.3RC3-dev
location: http://www.php.net/
Connection: close
Content-Type: text/html; charset=ISO-8859-1


Now it works as expected. Apparently, somewhere inside flush() the
status is reset to 404.

Regards,
Fredrik


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

[2003-07-29 07:24:58] [EMAIL PROTECTED]

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.



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

[2003-07-24 15:09:25] [EMAIL PROTECTED]

still waiting for the test case..


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

[2003-07-17 21:38:07] [EMAIL PROTECTED]

Ok. Set back to "Open" when you get that testcase done.



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

[2003-07-17 10:10:56] [EMAIL PROTECTED]

I've just tried out php4-STABLE-200307171330 and the problem is still
present.

I'll write a small testcase during the weekend so that you can easily
verify the bug.

Regards,
Fredrik

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

[2003-07-10 23:48:19] [EMAIL PROTECTED]

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


Can you do a favor and test the latest CVS? 
I have no time to setup a mirror just to test this.. :)


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

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

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

Reply via email to