Re: mktime problem...

From: Date: Mon, 19 Jan 2004 20:05:29 +0000
Subject: Re: mktime problem...
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7190@lists.php.net to get a copy of this message
Your libc doesn't support negative time_t values. --Wez. ----- Original Message ----- From: "Jonathan Hernandez" <ion@gluch.org.mx> To: <internals@lists.php.net> Sent: Monday, January 19, 2004 7:20 PM Subject: [PHP-DEV] mktime problem... > 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?

« previous php.internals (#7190) next »