Re: Bug #6728: mktime / date misbehaving around 1964 nd earlier

From: Date: Wed, 13 Sep 2000 14:14:44 +0000
Subject: Re: Bug #6728: mktime / date misbehaving around 1964 nd earlier
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33173@lists.php.net to get a copy of this message
david@broadowler.co.uk wrote: > $d4=mktime(0,0,0,09,01,1961);$d4s=date("D d F Y", $d4); It is not a bug in mktime or date - "09" means "octal 9", which is obviously an error. I think PHP is using the value zero since it doesn't understand what you mean, so you are calling mktime with a zero month, which is causing undefined behaviour.

« previous php.dev (#33173) next »