ID: 17098 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: custom linux PHP Version: 4.0CVS-2002-05-08 New Comment:
Sorry, but the bug system is not the appropriate forum for asking support questions. Your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Thank you for your interest in PHP. This is an Apache 2 bug. According to http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9673 this bug has been corrected in Apache 2.0.42 and later. Previous Comments: ------------------------------------------------------------------------ [2002-08-16 03:56:57] [EMAIL PROTECTED] Sir, you are correct in your analysis. ------------------------------------------------------------------------ [2002-08-15 13:30:40] [EMAIL PROTECTED] 3+ months later and this still happens with Apache 2.0.40 and PHP snapshot php4-200208150600 !!! Seems that PHP developers view Apache2 as pre-alpha and they don't want to touch it with a 10-foot stick. ------------------------------------------------------------------------ [2002-07-20 10:54:57] [EMAIL PROTECTED] I'd like to post a workaround without patching apache or PHP.... Just edit your script(s) to send a 'header("Last-Modified: Mon, 26 Jul 1997 05:00:00 GMT");' or just some other date older than the mdate of your script file. This solves the problem. Reason: The bug causes Apache2 to look for the mdate of the .php file to determine if it has been modified. If the browser first gets a header like above, it next time asks for the page with an 'If-Modified-Since: Mon, 26 Jul 1997 05:00:00 GMT'. Then, the httpd looks at the mdate of your script, which is always newer and says: Yes, it has been modified, "200 OK". The script will be served and it will response again with the header line from above. Round and round the story goes. :)) Greets, and have fun! Daniel ------------------------------------------------------------------------ [2002-07-10 13:43:02] [EMAIL PROTECTED] Status -> Open Apache devs are still argueing whether this is a bug in Apache or in PHP :) ------------------------------------------------------------------------ [2002-07-10 13:37:45] [EMAIL PROTECTED] however: it doesn't work for phpmyadmin ( still displaying old query results ), BUT at least one of my regular scripts ( just some simple task ) does indeed work: apache's returning the expected 200 OK response. ------------------------------------------------------------------------ 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/17098 -- Edit this bug report at http://bugs.php.net/?id=17098&edit=1
