From: [EMAIL PROTECTED] Operating system: RedHat Linux 8.0 PHP version: 4.2.3 PHP Bug Type: Apache2 related Bug description: Apache caches PHP scripts with changed contents
A "clean" installation of Apache 2.0.40, PHP 4.2.3, and MySQL 3.23.52 (all of them installed as RPMs, with the necessary mod_* RPMs in place, too) produced the following error in the following situation: A PHP script reads data from the MySQL database. This data changes quite often, meaning that the PHP script's HTML output is going to differ on virtually every execution of the PHP script. Nonetheless, Apache 2.0.40 appears to cache the PHP script, sometimes presenting the user with very old data. I'd imagine that the Apache server should somehow be instructed that the PHP script's output has changed since the last call of the PHP script. Degrading to the only RPMs I had of Apache and PHP (Apache 1.3.23 and PHP 4.1.2) solved the problem, but this is obviously not an ideal solution. Others have experienced this error, too, and some have suggested workarounds such as described at http://makeashorterlink.com/?J2F112D02 . This workaround is not always possible, however. -- Edit bug report at http://bugs.php.net/?id=19831&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19831&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19831&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19831&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19831&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19831&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19831&r=support Expected behavior: http://bugs.php.net/fix.php?id=19831&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19831&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19831&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19831&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19831&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=19831&r=dst IIS Stability: http://bugs.php.net/fix.php?id=19831&r=isapi