You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2018. It is now read-only.
In Zend_Cache the following code is used multiple times:
while (list($name, $value) = each($options)) {
//....
}
This is a problem when the options are looped through earlier, the internal pointer is not 0 anymore. I had problems with this, I could not set the cache dir and took me some time to figure out what was happening.
As I see it, it could be solved in two ways:
Calling reset before looping through the options
Use foreach instead of while/each (I prefer this one)
This constuction is used multiple times through Zend_Cache. I replaced all using the second method. All tests passed succesfully.
Do I miss anything before I place a pull request?
The text was updated successfully, but these errors were encountered:
In Zend_Cache the following code is used multiple times:
This is a problem when the options are looped through earlier, the internal pointer is not 0 anymore. I had problems with this, I could not set the cache dir and took me some time to figure out what was happening.
As I see it, it could be solved in two ways:
This constuction is used multiple times through Zend_Cache. I replaced all using the second method. All tests passed succesfully.
Do I miss anything before I place a pull request?
The text was updated successfully, but these errors were encountered: