Edit report at http://bugs.php.net/bug.php?id=36754&edit=1

 ID:               36754
 Updated by:       paj...@php.net
 Reported by:      mbogomolni at scyld dot com
 Summary:          php_uname('o') not supported
-Status:           Open
+Status:           Suspended
 Type:             Feature/Change Request
-Package:          Feature/Change Request
+Package:          *General Issues
 Operating System: Linux
 PHP Version:      5.1.2
-Assigned To:      
+Assigned To:      pajoye

 New Comment:

This addition is not POSIX compliant. However there is a RFC to add this
kind of information to uname but as long as it is not added to the POSIX
standard (and in the system API), we can't support it.


Previous Comments:
------------------------------------------------------------------------
[2006-03-16 02:11:29] mbogomolni at scyld dot com

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 this bug report at http://bugs.php.net/bug.php?id=36754&edit=1

Reply via email to