From:             ceefour at gauldong dot net
Operating system: All
PHP version:      5.0.3
PHP Bug Type:     Session related
Bug description:  Last-Modified is set to PHP file mtime

Description:
------------
When using 'public' or 'private' cache limiter (maybe other cache
limiters, except 'nocache'), PHP will output the PHP script's mtime as the
Last-Modified header. While this is okay for some purposes, the dynamic
nature of PHP scripts make this a bad "feature".

It's possible to circumvent this problem by manually sending a header()
but IMHO this should never be necessary.

My proposal would be to change these affected limiters to either not
output Last-Modified or output a current time Last-Modified header using
the format date('D, d M Y H:i:s O'). Note that date('r') doesn't work in
some cases.


-- 
Edit bug report at http://bugs.php.net/?id=32014&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32014&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32014&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32014&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32014&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32014&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32014&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32014&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32014&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32014&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32014&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32014&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32014&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32014&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32014&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32014&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32014&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32014&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32014&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32014&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32014&r=mysqlcfg

Reply via email to