Skip to content

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

Merged
DeepDiver1975 merged 2 commits into
owncloud:masterfrom
cyberb:filemtime_fix
Sep 29, 2016
Merged

fixing php 32 bit (arm) filemtime on large file issue (#18971)#25428
DeepDiver1975 merged 2 commits into
owncloud:masterfrom
cyberb:filemtime_fix

Conversation

@cyberb

@cyberb cyberb commented Jul 10, 2016

Copy link
Copy Markdown
Contributor

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

@mention-bot

Copy link
Copy Markdown

@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

ghost commented Jul 11, 2016

Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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

cyberb commented Jul 20, 2016

Copy link
Copy Markdown
Contributor Author

Any updates?

Comment thread lib/private/Files/Storage/Local.php Outdated
return false;
}
if (PHP_INT_SIZE === 4) {
return exec ('stat -c %Y '. escapeshellarg ($fullPath));

Copy link
Copy Markdown
Contributor

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

CLAassistant commented Aug 3, 2016

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@cyberb

cyberb commented Aug 3, 2016

Copy link
Copy Markdown
Contributor Author

this contribution is MIT licensed

@VicDeo

VicDeo commented Aug 9, 2016

Copy link
Copy Markdown
Contributor

👍 Looks good

@DeepDiver1975

Copy link
Copy Markdown
Member

👍

@lock

lock Bot commented Aug 4, 2019

Copy link
Copy Markdown

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