fix php53 compat

This commit is contained in:
Robin Appelman 2015-12-31 20:58:49 +01:00
commit d8105d7695

View file

@ -15,10 +15,10 @@ class System {
private $net; private $net;
public static function getFD($num) { public static function getFD($num) {
$folders = [ $folders = array(
'/proc/self/fd', '/proc/self/fd',
'/dev/fd' '/dev/fd'
]; );
foreach ($folders as $folder) { foreach ($folders as $folder) {
if (file_exists($folder)) { if (file_exists($folder)) {
return $folder . '/' . $num; return $folder . '/' . $num;