From: abxccd at msn dot com
Operating system: Ubuntu 12.10
PHP version: 5.4.12
Package: Output Control
Bug Type: Bug
Bug description:PHP mangles expires header when session.cache_limiter is used
Description:
------------
If session.cache_limiter in php.ini has any of these values: public,
private, or nocache, the expires header will be mangled if we try to set
one at a later stage.
To replication, first, set your session.cache_limiter to private or any of
the above values, or do it using session_cache_limiter. Then, run the test
script. Then, inspect the response headers with a tool like FireBug.
Test script:
---------------
<?php
header('Expires: Wed, 05 Mar 2014 21:25:41');
Expected result:
----------------
Content-Type text/html
Date Tue, 05 Mar 2013 10:25:42 GMT
Expires Wed, 05 Mar 2014 21:25:41 GMT
Actual result:
--------------
Content-Type text/html
Date Tue, 05 Mar 2013 10:30:17 GMT
Expires Thu, 19 Nov 1981 08:52:00 GMT, Wed, 05 Mar 2014 21:25:41 GMT <----
Mangled
--
Edit bug report at https://bugs.php.net/bug.php?id=64357&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=64357&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=64357&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=64357&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64357&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64357&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64357&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64357&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64357&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64357&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64357&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=64357&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=64357&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64357&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64357&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64357&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64357&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64357&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64357&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64357&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64357&r=mysqlcfg