#40013 [Opn->Csd]: php_uname() doesnt return nodename
| From: | pajoye@php.net | Date: | Sun, 06 Sep 2009 22:01:33 +0000 |
| Subject: | #40013 [Opn->Csd]: php_uname() doesnt return nodename | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-142040@lists.php.net to get a copy of this message | ||
ID: 40013
Updated by: pajoye@php.net
Reported By: gk at gknw dot de
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: NetWare
PHP Version: 6CVS-2007-01-03 (snap)
Assigned To: pajoye
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2009-09-06 22:01:18] svn@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=288116
Log: - fix #40013, php_uname() doesnt return nodename (MFH)
------------------------------------------------------------------------
[2008-03-05 21:21:55] pajoye@php.net
Applied to 5.2 and HEAD, remains 5.3. I will do it later, no 5.3 tree
at hand and low bandwidth here :)
------------------------------------------------------------------------
[2007-01-03 16:32:04] gk at gknw dot de
Description:
------------
On NetWare platform php_uname('n') returns a hardcoded string 'NLM'
which is pretty much useless. This is due to the fact that Novell
NetWare pupulates the utsname struct different from other Posix
platfoms. Nevertheless they have added a bunch of other useful members
which return the correct hostname as well as more accurate version
infos.
Here's a unified diff against ./ext/standard/info.c which corrects
php_uname() for NetWare, and also adds some more useful information:
http://www.gknw.net/test/php_issues/info.c.diff
to verify this proposed patch here's a test script running on PHP 5.2.0
unpatched (NetWare 6.50 SP 6):
http://www.gknw.net/tstphp/phpuname.php
and here's running PHP 5.2.0 patched (NetWare 5.10 SP 8):
http://www.mailkastl.at/tstphp/phpuname.php
as you can see I get here the hostname of the machine, and in addition
the NetWare version + SP level, and the libc version too.
Would be great if this patch gets applied.
Thanks!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40013&edit=1