#33597 [NEW]: setcookie expires date format

From: Date: Wed, 06 Jul 2005 22:20:20 +0000
Subject: #33597 [NEW]: setcookie expires date format
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-81500@lists.php.net to get a copy of this message
From:             rodricg at sellingsource dot com
Operating system: Linux
PHP version:      5.0.4
PHP Bug Type:     Unknown/Other Function
Bug description:  setcookie expires date format

Description:
------------
setcookie expires date format is invalid according to  
http://wp.netscape.com/newsref/std/cookie_spec.html
 
and  
http://www.faqs.org/rfcs/rfc2109 
 
ie. " ... and the separators between the elements of the 
date must be dashes." 
  
 

Reproduce code:
---------------
<?php

setcookie("TestCookie", "PeanutButter", time()-3600);

?>

Expected result:
----------------
Should generate a header with an expires date like: 
 
expires=Wed, 06-Jul-2005 20:49:30 GMT 

Actual result:
--------------
Generates a header with an expires date like: 
 
expires=Wed, 06 Jul 2005 20:49:30 GMT 

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


Thread (6 messages)

« previous php.bugs (#81500) next »