mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
fix mode parsing for php 7.4
This commit is contained in:
parent
9fb1753828
commit
63319ec68b
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ class Parser {
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
'mtime' => strtotime($data['write_time']),
|
'mtime' => strtotime($data['write_time']),
|
||||||
'mode' => hexdec(substr($data['attributes'], strpos($data['attributes'], '('), -1)),
|
'mode' => hexdec(substr($data['attributes'], strpos($data['attributes'], '(') + 1, -1)),
|
||||||
'size' => isset($data['stream']) ? (int)(explode(' ', $data['stream'])[1]) : 0
|
'size' => isset($data['stream']) ? (int)(explode(' ', $data['stream'])[1]) : 0
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue