From: gk at gknw dot de Operating system: NetWare PHP version: 6CVS-2007-01-03 (snap) PHP Bug Type: Feature/Change Request Bug description: php_uname() doesnt return nodename
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 bug report at http://bugs.php.net/?id=40013&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40013&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40013&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40013&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40013&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40013&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40013&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40013&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40013&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40013&r=support Expected behavior: http://bugs.php.net/fix.php?id=40013&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40013&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40013&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40013&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40013&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40013&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40013&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40013&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40013&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40013&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40013&r=mysqlcfg