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

Fix random failure in PHP 7 tests "filemtime(): stat failed" #2248

Closed
quicksketch opened this issue Sep 30, 2016 · 1 comment
Closed

Fix random failure in PHP 7 tests "filemtime(): stat failed" #2248

quicksketch opened this issue Sep 30, 2016 · 1 comment

Comments

@quicksketch
Copy link
Member

quicksketch commented Sep 30, 2016

Right now we are getting a random failure from PHP 7:

exception filemtime(): stat failed for modules/ddd_installer_test/ddd_installer_test.info system.module:2735

This is likely caused by the PHP stat cache. When installing a module from a remote source, PHP doesn't know that the file exists on disk. It caches it not existing, then when filemtime() is called on it, it fails because the cache contains that file as non-existent.

To fix this, we should clear the file stat cache after installing a remote module in the Installer module.


PR backdrop/backdrop#1595

@quicksketch
Copy link
Member Author

All tests passed, a good sign. Merged backdrop/backdrop#1595 for 1.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant