PHP 4.0 Bug #3028 Updated: setcookie outputs wrong format, year not 4-digits

From: Date: Wed, 22 Dec 1999 22:57:46 +0000
Subject: PHP 4.0 Bug #3028 Updated: setcookie outputs wrong format, year not 4-digits
Groups: php.dev 
Request: Send a blank email to php-dev+get-13950@lists.php.net to get a copy of this message
ID: 3028 Updated by: rasmus Reported By: wew@bearnet.com Status: Closed Bug Type: Misbehaving function Assigned To: Comments: This has been discussed many times. Not all browsers understand the 4-digit format while they all understand the 2-digit format. And there is no Y2K issue here either as they properly understand 00 to be 2000. This is also configurable in the php.ini file for both PHP 3 and PHP 4 And by the way, if you look down in the example section of the URL you referenced you will see that they use 2-digit years. The original version of the spec had 2 digit years so that is what everyone implemented. They since went back and patched the spec but didn't bother fixing the examples. Full Bug description available at: http://bugs.php.net/?id=3028

« previous php.dev (#13950) next »