#36754 [NEW]: php_uname('o') not supported

From: Date: Thu, 16 Mar 2006 01:11:30 +0000
Subject: #36754 [NEW]: php_uname('o') not supported
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94401@lists.php.net to get a copy of this message
From: mbogomolni at scyld dot com Operating system: Linux PHP version: 5.1.2 PHP Bug Type: Feature/Change Request Bug description: php_uname('o') not supported Description: ------------ The function php_uname() supports returning the OS Kernel string. In the case of Linux, php_uname('s') returns 'Linux'. However, there is a difference between returning the Kernel string, and returning an OS string. Under RedHat Linux : uname -o returns 'GNU/Linux' Under Midori Linux : uname -o returns 'MIDORI/Linux' Under QNX 6.3 : uname -o returns 'QNX' Since the strings that uname -s, and uname -o differ, the php_uname function should also support the 'o' option. Reproduce code: --------------- <?php echo php_uname('s'); echo php_uname('o'); ?> Expected result: ---------------- Under linux, I would expect to see Linux GNU/Linnux Actual result: -------------- Linux -- Edit bug report at http://bugs.php.net/?id=36754&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36754&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36754&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36754&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=36754&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=36754&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=36754&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=36754&r=needscript Try newer version: http://bugs.php.net/fix.php?id=36754&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=36754&r=support Expected behavior: http://bugs.php.net/fix.php?id=36754&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=36754&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=36754&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=36754&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36754&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=36754&r=dst IIS Stability: http://bugs.php.net/fix.php?id=36754&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=36754&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=36754&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=36754&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=36754&r=mysqlcfg

« previous php.bugs (#94401) next »