|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-05 21:21 UTC] pajoye@php.net
[2009-09-06 22:01 UTC] svn@php.net
[2009-09-06 22:01 UTC] pajoye@php.net
[2009-10-09 17:15 UTC] svn@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
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!