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

[2.7] MemcachedEngine::clear() with no keys #7546

Closed
davidsteinsland opened this issue Oct 14, 2015 · 1 comment
Closed

[2.7] MemcachedEngine::clear() with no keys #7546

davidsteinsland opened this issue Oct 14, 2015 · 1 comment
Assignees
Milestone

Comments

@davidsteinsland
Copy link
Contributor

Invalid argument supplied for foreach()
[...] lib/Cake/Cache/Engine/MemcachedEngine.php:285

Fix: Before foreach, check that $keys is of type array and not false.

https://secure.php.net/manual/en/memcached.getallkeys.php:

Returns the keys stored on all the servers on success or FALSE on failure.

@markstory
Copy link
Member

Fixed with #7552

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

2 participants