Skip to content
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

Merged
merged 2 commits into from
Sep 29, 2016
Merged

fixing php 32 bit (arm) filemtime on large file issue (#18971) #25428

merged 2 commits into from
Sep 29, 2016

Conversation

cyberb
Copy link
Contributor

@cyberb cyberb commented Jul 10, 2016

Filemtime fix for 32bit platform only.
This contribution is MIT licensed

@mention-bot
Copy link

@cyberb, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @icewind1991 and @PVince81 to be potential reviewers

@cyberb cyberb mentioned this pull request Jul 10, 2016
@ghost
Copy link

ghost commented Jul 11, 2016

@cyberb

Thanks a lot for your contribution!
Contributions to the core repo require a signed contributors agreement http://owncloud.org/about/contributor-agreement/

Alternatively you can add a comment here where you state that this contribution is MIT licensed.

Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/

@DeepDiver1975 DeepDiver1975 added this to the 9.2 milestone Jul 11, 2016
return $this->file_exists($path) ? filemtime($this->getSourcePath($path)) : false;
$fullPath = $this->getSourcePath($path);
clearstatcache($fullPath);
if (!$this->file_exists($path)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could probably be inside the 32bit block to save a bit of time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry not sure I get that, are you talking about moving file existence check inside 32bjt block?
I thought this is platform independent check which prevents us from doing any modify time work if file does not exist.

@cyberb
Copy link
Contributor Author

cyberb commented Jul 20, 2016

Any updates?

return false;
}
if (PHP_INT_SIZE === 4) {
return exec ('stat -c %Y '. escapeshellarg ($fullPath));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyberb cast to int?

@CLAassistant
Copy link

CLAassistant commented Aug 3, 2016

CLA assistant check
All committers have signed the CLA.

@cyberb
Copy link
Contributor Author

cyberb commented Aug 3, 2016

this contribution is MIT licensed

@VicDeo
Copy link
Member

VicDeo commented Aug 9, 2016

👍 Looks good

@DeepDiver1975
Copy link
Member

👍

@lock
Copy link

lock bot commented Aug 4, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants