Hi ZF people.

I have following lines in bootstrap with ZF v1.7 running on php 5.2.6:

---------------------------------------->

$cache = Zend_Cache::factory('Page', 'File', array(
 'lifetime' => 60 * 60 * 12,
 'regexps' => array(
  // cache whole indexController
  '^' . BASE_PATH . '$' => array(
  'cache' => true),
  // cache whole indexController
  '^' . BASE_PATH . 'index' => array(
  'cache' => true),
  // cache whole iController
  '^' . BASE_PATH . 'i/' => array(
  'cache' => true),
  // cache ajax/get-suggest
  '^' . BASE_PATH . 'ajax/get-suggest' => array(
  'cache' => true,
  'cache_with_get_variables' => true,
  'cache_with_session_variables' => true,
  'cache_with_cookie_variables' => true,
  'make_id_with_get_variables' => true,
  'make_id_with_session_variables' => false,
  'make_id_with_cookie_variables' => false))), array(
 'cache_dir' => TEMP_DIR));
$cache->start();

// ... more later

Zend_Translate::setCache($cache);
$translate = new Zend_Translate('csv', DOC_ROOT . 'language' . DS .
'tr_TR.csv', 'tr_TR');
Zend_Registry::set('Zend_Translate', $translate);

---------------------------------------->

And it produces following errors:

Warning: unserialize() expects parameter 1 to be string, array given in
...\Zend\Translate\Adapter.php on line 436

Notice: No translation for the language 'tr_TR' available. in
...\Zend\Translate\Adapter.php on line 307

Notice: No translation for the language 'tr_TR' available. in
...\Zend\Translate\Adapter.php on line 307

Notice: No translation for the language 'tr_TR' available. in
...\Zend\Translate\Adapter.php on line 307

When I comment one of the cache feature, either $cache->start()
or Zend_Translate::setCache($cache); everything looks fine. I have found
similar bug below link but it says it is fixed already:
http://framework.zend.com/issues/browse/ZF-3930

Could be a bug?

Reply via email to