Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

mbogomolni at scyld dot com

unread,
Mar 15, 2006, 8:12:30 PM3/15/06
to
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

0 new messages