mktime problem...

From: Date: Mon, 19 Jan 2004 19:20:58 +0000
Subject: mktime problem...
Groups: php.internals 
Request: Send a blank email to internals+get-7189@lists.php.net to get a copy of this message
Hello, I have a problem with mktime, when I try to run this: <?php $date = getdate(mktime(12, 0, 0, 1, 1 ,1959)); echo $date[0]." ".$date['mday']."-".$date['mon']."-".$date['year']."<br/>"; $date = getdate(-347090400); echo $date[0]." ".$date['mday']."-".$date['mon']."-".$date['year']."<br/>"; ?> Output: -62 31-12-1969 -347090400 1-1-1959 I compile php5.0b3 on Fedora(gcc 3.3.2/ kernel 2.4.22), if I try to run it on Debian (gcc 2.95.4 / kernel 2.6.0) it works fine, Output: -347090400 1-1-1959 -347090400 1-1-1959 Both php are compiled with the same ./configure line... Any idea about this? Thanks in advance, Jonathan http://ion.gluch.org.mx

« previous php.internals (#7189) next »