note 11628 added to mktime
| From: | php-general at lists dot php dot net | Date: | Wed, 28 Feb 2001 10:23:00 +0000 |
| Subject: | note 11628 added to mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-11652@lists.php.net to get a copy of this message | ||
The above (by ckater@gwdg.de) is not a bug. 09 is considered to be an octal value, because of the
leading zero. And since 9 is not a legal octal value, it's interpreted as 0. Thus the function
creates a timestamp on the last day of the previous month.
http://www.php.net/manual/en/function.mktime.php