Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

fix for issue 6076. avoid GlobIterator globbing to directories which it ... #6077

Merged
merged 4 commits into from
Apr 14, 2014

Conversation

brettmc
Copy link
Contributor

@brettmc brettmc commented Apr 2, 2014

...will subsequently fail to unlink() by appending . instead of just * to path in clearByNamespace() and clearByPrefix(). . will glob to both .dat and .tag extensions

…it will subsequently fail to unlink() by appending *.* instead of just * to path in clearByNamespace() and clearByPrefix(). *.* will glob to both .dat and .tag extensions
@Ocramius
Copy link
Member

Ocramius commented Apr 2, 2014

@brettmc can you provide a test for this one?

@Ocramius Ocramius added Cache and removed Stdlib labels Apr 2, 2014
@Ocramius
Copy link
Member

Ocramius commented Apr 2, 2014

See #6076

…or clearByPrefix shows that it's actually not an issue (due to the prefix itself differentiating a file from a dir), so revert my change to clearByPrefix
@marc-mabe
Copy link
Member

As noted in #6076 it should be done for clearByPrefix(), too

brettmc added 2 commits April 7, 2014 11:43
…can try to remove a directory (eg if the prefix happens to collide with a partial md5 key), as pointed out by @marc-mabe in issue 6076
@weierophinney weierophinney added this to the 2.3.1 milestone Apr 14, 2014
@weierophinney weierophinney self-assigned this Apr 14, 2014
weierophinney added a commit that referenced this pull request Apr 14, 2014
fix for issue 6076. avoid GlobIterator globbing to directories which it ...

Conflicts:
	tests/ZendTest/Cache/Storage/Adapter/FilesystemTest.php
weierophinney added a commit that referenced this pull request Apr 14, 2014
@weierophinney weierophinney merged commit 9651573 into zendframework:master Apr 14, 2014
weierophinney added a commit that referenced this pull request Apr 14, 2014
@brettmc brettmc deleted the zf6076 branch April 15, 2014 23:19
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
fix for issue 6076. avoid GlobIterator globbing to directories which it ...

Conflicts:
	tests/ZendTest/Cache/Storage/Adapter/FilesystemTest.php
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-cache that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants