PHP 4.0 Bug #6903 Updated: error with mktime function

From: Date: Fri, 29 Sep 2000 01:08:30 +0000
Subject: PHP 4.0 Bug #6903 Updated: error with mktime function
Groups: php.dev 
Request: Send a blank email to php-dev+get-33811@lists.php.net to get a copy of this message
ID: 6903 Updated by: jah Reported By: andrew@cybergroups.net Status: Closed Bug Type: Date/time related Assigned To: Comments: This isn't a bug. 09 is a number in octal notation, and also a non-existent octal number that will evaluate to 0. The 0th month of 2000 is considered to be December 1999. Previous Comments: --------------------------------------------------------------------------- [2000-09-27 10:02:56] andrew@cybergroups.net The two following uses of the mktime function return entirely different values: mktime ("12","00","00","09","27","2000"); mktime (12,00,00,09,27,2000); The first returns "Sep-27-2000" as it should, but the second returns "Dec-27-1999" which is completely wrong. If I enter variables as the arguments, that works fine. It only seems to not work when the arguments aren't in double quotes. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6903

« previous php.dev (#33811) next »