ZF-3992: [TRUNK]Zend_translate tries to save cached translation with wrong id formed - that ends with exception

Issue Type: Bug Created: 2008-08-19T01:47:03.000+0000 Last Updated: 2008-09-02T10:39:32.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Marcin Lulek (ergo14) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments:


There is problem with handling of id's that are created for cache objects to save translate adapter's translations.

The problem is that $data that is used to build holds the full path string for file with illegal characters that cache adapter doesnt accept.

fix is to remove the illegal characters for tag's used.

file Adapter.php :

the $id crated in line 437 and 461 should look like this:

$id = 'Zend_Translate_' . preg_replace('/[^a-zA-Z0-9_]/','',$data) . '' . $locale . '_' . $this->toString();

now no exceptions are thrown as the id's are generated "the right way".


Posted by Thomas Weidner (thomas) on 2008-08-19T11:53:34.000+0000

This issue was already fixed in trunk with r10919

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:32.000+0000

Updating for the 1.6.0 release.

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.