ZF-8633: Locale corruption of Zend_Cache IDs

Issue Type: Bug Created: 2009-12-25T17:52:35.000+0000 Last Updated: 2010-02-27T18:58:21.000+0000 Status: Closed Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Pádraic Brady (padraic) Assignee: Marc Bennewitz (private) (mabe) Tags: - Zend_Cache

Related issues: Attachments:


Zend_Cache_Core defines a method to validate IDs, stated to match the pattern [a-zA-Z0-9_]. In reality, the regular expression used is [\w]+. While ordinarily this is correct, on a system where PECL has been compiled with additional locales, the \w "word" will match additional locale specific characters. In order to avoid this, the regular expression used should be made explicit to avoid such additional character matches.


Posted by Pádraic Brady (padraic) on 2009-12-25T17:55:14.000+0000

There's a similar misuse in Zend_Cache_Backend_File when checking a filename.

Posted by Marc Bennewitz (private) (mabe) on 2010-02-27T18:58:21.000+0000

fixed in r21221 (trunk) & r21223 (1.10 branch)

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.