ZF-8639: due invalid cache id Zend_Controller_Action_Helper crashes

Issue Type: Bug Created: 2009-12-26T21:31:22.000+0000 Last Updated: 2010-02-06T09:13:40.000+0000 Status: Resolved Fix version(s): - 1.10.1 (10/Feb/10)

Reporter: Renan de Lima (renanbr) Assignee: Pádraic Brady (padraic) Tags: - Zend_Controller

Related issues: Attachments:


Zend_Controller_Action_Helper uses request URI as cache id. It generates an exception.

cache id is generated at library/Zend/Controller/Action/Helper.php:157

The exception came from Zend_Cache_Core "Invalid id or tag '/mycontroller/myaction' : must use only [a-zA-Z0-9_]"


Posted by Pádraic Brady (padraic) on 2010-02-06T09:13:40.000+0000

Patched in SVN - it's actually an issue with Zend_Cache_Core but cannot be refactored at this time. Instead the ID is now encoded to hexadecimal (hexdec()) to bypass the ID check and converted back using pack() on the other side.

Have you found an issue?

See the Overview section for more details.


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

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