RE: Itanium2 test from 15.04.-14.05.

php.internals

Kai Hofmann

22 years ago
> > Until now we found with php / phpGroupWare only one problem on > > the Itanium 2 machine. > > > > phpGW has used mktime() with day values <= 0 > > This seems to be fixed (magically) by the underlying Unix > mktime() function > > on 32-Bit Linux/Windows Systems, but not on the RedHat Itanium 2 > > distribution we used for testing. > > Do you have a script to illustrate this problem ?
The Script is (in php) quite simple: <?php echo mktime(2,0,0,4,-6,2004); /* or 0 to -5 */ ?> run this with php 4.3.6 on a 32-bit system and on Itanium2 and compare the seconds returned back from both systems. I have differences of ~ 2 days there which can not be the DST setting. I am not sure of the relevance of http://bugs.php.net/bug.php?id=10686 regarding this. It might also be that the bug is in the implementation of mktime() from Linux (it's a RH AS 2.1 IA64). I still have to do more testing - but not much time to do so :( Greetings Kai Hofmann

Christian Schneider

22 years ago
Kai Hofmann wrote:
> echo mktime(2,0,0,4,-6,2004); /* or 0 to -5 */
This returns 1080176400 (2004-03-25 02:00:00) here (PHP 4.3.6) which looks ok to me. What are the values on your system? - Chris