Looks like, that PHP just reads the 0's...

mktime(0,0,0,0,0,2001) results the same as mktime(0,0,0,0x,0x,2001)

> -----Ursprüngliche Nachricht-----
> Von: Bug Database [mailto:[EMAIL PROTECTED]] 
> Gesendet: Donnerstag, 9. August 2001 00:18
> An: [EMAIL PROTECTED]
> Betreff: Bug #12665 Updated: mktime() is strange
> 
> 
> ID: 12665
> Updated by: alindeman
> Reported By: [EMAIL PROTECTED]
> Status: Open
> Bug Type: *General Issues
> Operating System: Linux & Windows
> PHP Version: 4.0.6
> New Comment:
> 
> wierd...
> 
> your script says they are the same, but remove the 0's in 
> front of the 8 and 9 like
> 
> mktime (0,0,0,8,8,2001) (instead of mktime(0,0,0,08,08,2001))
> 
> it works as planed (not equal)
> 
> supposed to happen?? second opinion, please...
> 
> 
> 
> Previous Comments:
> --------------------------------------------------------------
> ----------
> 
> [2001-08-08 18:06:02] [EMAIL PROTECTED]
> 
> Hi all,
> 
> <?
>       if ((mktime(0,0,0,08,08,2001)) == (mktime 
> (0,0,0,08,09,2001))) echo "Something wrong - I think!"; ?>
> 
> The result of both - mktime(0,0,0,08,08,2001) and 
> mktime(0,0,0,08,09,2001) - is 975538800.
> 
> Whats wrong?
> 
> 
> Bye,
> Oliver
> 
> --------------------------------------------------------------
> ----------
> 
> 
> 
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at 
> http://bugs.php.net/?id=12665&edit=2
> 
> 
> 


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to