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

getMTime Stat Failed (PHP GC Bug?) #385

Closed
jaswrks opened this issue Dec 24, 2014 · 2 comments
Closed

getMTime Stat Failed (PHP GC Bug?) #385

jaswrks opened this issue Dec 24, 2014 · 2 comments
Assignees
Milestone

Comments

@jaswrks
Copy link

@jaswrks jaswrks commented Dec 24, 2014

A fork of #288 (comment) regarding getMTime()

Uncaught exception 'RuntimeException' with message 'SplFileInfo::getMTime() [splfileinfo.getmtime]: stat failed in /home/mysite/public_html/continut/plugins/quick-cache-pro/includes/share.php:1671

I have seen this error trickle through now and again on our servers also. I don't understand the reason for it. I just did a bit of digging and I found that Laravel and Symphony frameworks are having some of the same trouble with getMTime. One developer attempted to work around the problem by calling filemtime() against the realpath: symfony/symfony@c6e9e06

Something tells me this could be a PHP bug related to the stat cache. Still researching.

Also found this related discussion:
http://www.zendframework.com/issues/browse/ZF-11858

@jaswrks
Copy link
Author

@jaswrks jaswrks commented Dec 24, 2014

Referencing: http://bit.ly/1HDDYWP ~ reviewing known bugs.

@raamdev
Copy link
Contributor

@raamdev raamdev commented Dec 27, 2014

Next release changelog:

  • Bug Fix: We have had a few reports of getMTime Stat failing when clearing the cache. This fix clears the Stat Cache before iteration when deleting files from the cache directory. Props @jaswsinc. See #385.
@raamdev raamdev closed this Dec 27, 2014
@raamdev raamdev removed the in progress label Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants