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;
public static function getFD($num) {
$folders = [
$folders = array(
'/proc/self/fd',
'/dev/fd'
];
);
foreach ($folders as $folder) {
if (file_exists($folder)) {
return $folder . '/' . $num;