#25186 [Opn->Csd]: php_uname - not the build os, but the running os
| From: | dave@php.net | Date: | Fri, 06 Aug 2004 13:02:38 +0000 |
| Subject: | #25186 [Opn->Csd]: php_uname - not the build os, but the running os | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969362753@lists.php.net to get a copy of this message | ||
ID: 25186
Updated by: dave@php.net
Reported By: cheezy@php.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
After almost a year, I have fixed this. See
http://cvs.php.net/diff.php/phpdoc/en/reference/info/functions/php-uname.xml?r1=1.9&r2=1.10&ty=h
Previous Comments:
------------------------------------------------------------------------
[2003-08-21 05:49:15] didou@php.net
sorry, I need some coffee.. :)
forget what I've said
------------------------------------------------------------------------
[2003-08-21 05:45:52] didou@php.net
Please don't report bugs for the notes in the manual.
See http://www.php.net/manual/en/about.notes.php
you can send us a mail at php-notes@lists.php.net if you want us to
remove some notes.
cheers,
didou
------------------------------------------------------------------------
[2003-08-21 05:42:22] daveb at optusnet dot com dot au
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 <sys/utsname.h> 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.
------------------------------------------------------------------------
[2003-08-21 05:26:18] cheezy@php.net
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