note 30617 added to function.php-uname

From: Date: Mon, 24 Mar 2003 04:17:08 +0000
Subject: note 30617 added to function.php-uname
Groups: php.notes 
Request: Send a blank email to php-notes+get-45713@lists.php.net to get a copy of this message
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 -- http://www.php.net/manual/en/function.php-uname.php http://master.php.net/manage/user-notes.php?action=edit+30617 http://master.php.net/manage/user-notes.php?action=delete+30617 http://master.php.net/manage/user-notes.php?action=reject+30617

« previous php.notes (#45713) next »