Return OS with ping
This commit is contained in:
parent
3a687b1dae
commit
9a9a43fc4d
@ -1564,11 +1564,13 @@ function dol_print_reduction($reduction, $langs)
|
|||||||
* Return OS version.
|
* Return OS version.
|
||||||
* Note that PHP_OS returns only OS (not version) and OS PHP was built on, not necessarly OS PHP runs on.
|
* Note that PHP_OS returns only OS (not version) and OS PHP was built on, not necessarly OS PHP runs on.
|
||||||
*
|
*
|
||||||
* @return string OS version
|
* @param string $option Option string
|
||||||
|
* @return string OS version
|
||||||
*/
|
*/
|
||||||
function version_os()
|
function version_os($option = '')
|
||||||
{
|
{
|
||||||
$osversion = php_uname();
|
if ($option) $osversion = php_uname($option);
|
||||||
|
else $osversion = php_uname();
|
||||||
return $osversion;
|
return $osversion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user