PHP 4.0 Bug #6903: error with mktime function
| From: | andrew at cybergroups dot net | Date: | Wed, 27 Sep 2000 14:02:56 +0000 |
| Subject: | PHP 4.0 Bug #6903: error with mktime function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33761@lists.php.net to get a copy of this message | ||
From: andrew@cybergroups.net
Operating system: Redhat 6.0
PHP version: 4.0.2
PHP Bug Type: Date/time related
Bug description: error with mktime function
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.