ID: 25186
Comment by: daveb at optusnet dot com dot au
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type:Documentation problem
PHP Version: Irrelevant
New Comment:
To me it looks like:
On Windows, it's always the running OS.
On *nix, it's the running OS except when the call to uname() fails or
when doesn't exist, then it falls back to the build
OS.
As for the PHP_OS constant, it seems to always be the build OS.
So the documentation appears to needs work.
Previous Comments:
[2003-08-21 05:26:18] [EMAIL PROTECTED]
Description:
Is this note correct?
vbhackattack at hotmail dot com 24-Mar-2003 05:17
According to the source code for this function (/ext/standard/info.c),
the description is not correct. The function returns information about
the operating system PHP is _running_ on, not built on. For example, if
PHP was build on Win2000 but is running on WinXP, the function should
report a version number appropriate for WinXP. I have not tested this,
just read the source code which calls the WinAPI function GetVersion()
or the *nix function uname() at _run_ time.
John
--
Edit this bug report at http://bugs.php.net/?id=25186&edit=1