note 11628 added to mktime

From: 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

« previous php.notes (#11652) next »