|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-30 10:15 UTC] pajoye@php.net
-Status: Open
+Status: Suspended
-Package: Feature/Change Request
+Package: *General Issues
-Assigned To:
+Assigned To: pajoye
[2010-05-30 10:15 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 05:00:01 2025 UTC |
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