[dev] NIC ping patch for Win32

Michael Cochrane mike@graftonhall.co.nz
Thu, 9 Aug 2001 04:49:37 +1200


Under Windows 2000 PHP_OS is set to 'WINNT' but it appears that on win9x
systems it is set to 'Windows' or possibly 'WIN32'.

suggestion is to change to:
    if (strtoupper(substr(PHP_OS, 0,3)) == 'WIN') {
or something equivalent.

Mike :-)

----- Original Message -----
From: "Chuck Hagenbuch" <chuck@horde.org>
To: <dev@lists.horde.org>
Sent: Thursday, August 09, 2001 4:12 AM
Subject: Re: [dev] NIC ping patch for Win32


Quoting Michael Cochrane <mike@graftonhall.co.nz>:

> Here is the change I made to ping.php to allow it to work in a win32
system.
> I have tested this and it works fine on my Windows 2000, Apache system.

I committed a slightly different patch using the PHP_OS constant - can you
test
it?

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Some fallen angels have their good reasons.

--
Horde Developers mailing list: http://horde.org/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@lists.horde.org