-
Notifications
You must be signed in to change notification settings - Fork 177
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
sfAutoload produces a PHP warning on unlink file #129
Comments
Yeah as far as I remember, I also got that error from time to time and I still didn't understand why if the previous condition about |
Because file state is cached during single PHP request... I would add a File: sfApplicationConfiguration.class.php#L113 $this->dispatcher->connect('autoload.filter_config', array($this, 'filterAutoloadConfig'));
sfAutoload::getInstance()->register();
if ($this->isDebug())
{
clearstatcache(); // HERE
sfAutoloadAgain::getInstance()->register();
} |
Or somewhere here: File: sfAutoload.class.php#L132 if (file_exists($configuration->getConfigCache()->getCacheName('config/autoload.yml')))
{
unlink($configuration->getConfigCache()->getCacheName('config/autoload.yml'));
clearstatcache(); // HERE
} |
This warning will appear on reloading data sometimes.
This error is still open, would it make sense to fix it? |
no longer relevant to me |
When the debug mode is
ON
, sometimes this line:sfAutoload.class.php#L134
produced error message:
I know, this it not good approach, but placing a
@
beforeunlink
will solve the issue.Also,
file_exists
can be replaced withis_file
(it's a correct way to check file existence)The text was updated successfully, but these errors were encountered: