-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixing php 32 bit (arm) filemtime on large file issue (#18971) (#25428) #1890
Conversation
return false; | ||
} | ||
if (PHP_INT_SIZE === 4) { | ||
return (int) exec ('stat -c %Y '. escapeshellarg ($fullPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should IMO be in \OC\LargeFileHelper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll adjust that.
return false; | ||
} | ||
if (PHP_INT_SIZE === 4) { | ||
return (int) exec ('stat -c %Y '. escapeshellarg ($fullPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll adjust that.
39acdec
to
ea00bca
Compare
I changed this as pointed out. 👍 from me now. |
Much cleaner 👍 |
Lets do this |
*/ | ||
public function getFileMtime($fullPath) { | ||
if (\OC_Helper::is_function_enabled('exec')) { | ||
return $this->exec('stat -c %Y ' . escapeshellarg($fullPath)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fails on OS X so we also need some more fallbacks here as it may also fail on other BSD and Linux derivates here. Awesome 🚀
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
ea00bca
to
62bb991
Compare
👍 |
cc @icewind1991 @rullzer @nickvergessen