# Itanium2 test from 15.04.-14.05.

- Thread: https://externals.io/message/9677
- Original archive: https://news-web.php.net/php.internals/9677
- Started by Kai Hofmann on 2004-05-06T06:31:11+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #9677 — Kai Hofmann — 2004-05-06T06:31:11+00:00

URL: https://externals.io/message/9677#9677

For your information:

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.

I have no idea if other php scripts will work in the same way,
so it might be an idea to catch this kind of error within
the php `mktime()` C-code.

Greetings

   Kai Hofmann

-- 
*****    Open Source und Linux im professionellen Einsatz    *****
**  komplexe Mailserver, Groupware, Office: sprechen Sie uns an **
Dipl.-Inform. Kai Hofmann                    Team Softwarelösungen
pro|business AG, EXPO Plaza 1 (Deutscher Pavillon), 30539 Hannover
E-Mail: KHofmann@probusiness.de,   Tel.: 0511/60066-332, Fax: -355
WWW: http://www.probusiness.de/

---

## #9678 — magnus@php.net — 2004-05-06T10:01:29+00:00

URL: https://externals.io/message/9677#9678 · In reply to: #9677

> For your information:
>
> 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 ?

-- 
There but for the grace of God, goes God.
		-- Winston Churchill, speaking of Sir Stafford Cripps.

---

## #9681 — Christian Schneider — 2004-05-06T11:20:13+00:00

URL: https://externals.io/message/9677#9681 · In reply to: #9677

Kai Hofmann wrote:
> phpGW has used `mktime()` with day values <= 0

This is a valid and documented way of using mktime to do date calculation.

> This seems to be fixed (magically) by the underlying Unix `mktime()` function

No, it is (or should be) handled in the PHP code.

Do you have a same script showing what you get and what you expect? 
Which version of PHP are you using?

- Chris
