ZF-3992: [TRUNK]Zend_translate tries to save cached translation with wrong id formed - that ends with exception
Description
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".
Comments
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.