ID: 24177
User updated by: [email]ohrnphp.net[/email]
Reported By: [email]ohrnphp.net[/email]
-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 ErrorDoent 404 /handler.php to your Apache config.

# lynx --head --dump [url]http://mysite.com/nonexistant[/url]
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: [url]http://www.php.net/[/url]

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


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

# lynx --head --dump [url]http://mysite.com/nonexistant[/url]
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: [url]http://www.php.net/[/url]
Connection: close
Content-Type: text/html; cht=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]sniperphp.net[/email]

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]sniperphp.net[/email]

still waiting for the test case..


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

[2003-07-17 21:38:07] [email]sniperphp.net[/email]

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



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

[2003-07-17 10:10:56] [email]ohrnphp.net[/email]

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]sniperphp.net[/email]

Please try using this CVS snapshot:

[url]http://snaps.php.net/php4-STABLE-latest.tar.gz[/url]

For Windows:

[url]http://snaps.php.net/win32/php4-win32-STABLE-latest.zip[/url]


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
[url]http://bugs.php.net/24177[/url]

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