Migrating changes made by @yberkholz in c90233d6e2 into 3.0

This commit is contained in:
Yves Berkholz
2015-06-16 10:26:40 -05:00
committed by Ben Ramsey
parent 2053cd3633
commit 505b2ac498
+5 -4
View File
@@ -38,19 +38,20 @@ class SystemNodeProvider implements NodeProviderInterface
*/
protected function getIfconfig()
{
ob_start();
switch (strtoupper(substr(php_uname('a'), 0, 3))) {
case 'WIN':
$ifconfig = `ipconfig /all 2>&1`;
passthru('ipconfig /all 2>&1');
break;
case 'DAR':
$ifconfig = `ifconfig 2>&1`;
passthru('ifconfig 2>&1');
break;
case 'LIN':
default:
$ifconfig = `netstat -ie 2>&1`;
passthru('netstat -ie 2>&1');
break;
}
return $ifconfig;
return ob_get_clean();
}
}