Issues

ZF-7286: Zend_Validate_Int can't work if cache is not available

Issue Type: Bug Created: 2009-07-15T04:48:13.000+0000 Last Updated: 2009-07-25T08:01:43.000+0000 Status: Resolved Fix version(s): - 1.9.0 (31/Jul/09)

Reporter: Eddo Rotman (karnaf) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: - ZF-7136

Attachments:

Description

Assume cache_dir is not writeable - when Zend_Validate_Int tries to validate, it uses the locale it had saved in the cache. If the cache is not working because the cache_dir is not writeable for example - you get "cache_dir is not writable" when trying to validate.

Backtrace:

0 **************/library/Zend/Cache/Backend/File.php(156): Zend_Cache::throwException('cache_dir is no...')

1 **************/library/Zend/Cache/Backend/File.php(122): Zend_Cache_Backend_File->setCacheDir('/tmp/', false)

2 **************/library/Zend/Cache.php(152): Zend_Cache_Backend_File->__construct(Array)

3 **************/library/Zend/Cache.php(93): Zend_Cache::_makeBackend('File', Array, false, false)

4 **************/library/Zend/Locale/Data.php(307): Zend_Cache::factory('Core', 'File', Array, Array)

5 **************/library/Zend/Locale/Format.php(512): Zend_Locale_Data::getList('en_US', 'symbols')

6 **************/library/Zend/Locale/Format.php(610): Zend_Locale_Format::isNumber('20', Array)

7 **************/library/Zend/Validate/Int.php(99): Zend_Locale_Format::isInteger('20', Array)

8 **************/library/Zend/Validate.php(91): Zend_Validate_Int->isValid('20')

Comments

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-07-15T04:55:58.000+0000

Assigning to Thomas as he will probably look at it (if he didn't resolve this issue earlier already).

Posted by Thomas Weidner (thomas) on 2009-07-15T05:23:19.000+0000

This issue duplicates ZF-7136.

It is already solved within SVN but actually blocked by the dev-team. I'm waiting for acceptance since several weeks as I was said that I am not allowed to integrate the fix to core.

Posted by Thomas Weidner (thomas) on 2009-07-25T08:01:43.000+0000

As per internal discussion we decided NOT to erase the default caching. As with ZF 1.9 a migration note has been added to Zend_Locale.

Disabling the default cache is still possible with disableCache(true);

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts