mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-04 01:34:07 +02:00
fix php53 compat
This commit is contained in:
parent
815f0d5271
commit
d8105d7695
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue