News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Danne Lundqvist's Blog:
Zend Framework and locales
April 01, 2009 @ 13:44:18

In a new post to his blog Danne Lundqvist take a look at using locales in the Zend Framework and a "gotcha" that made him look deeper.

Last night I spent a couple of hours with Zend Framework and especially Zend_Form. I discovered, and now also reported as ZF-6175, a bug in Zend_Validate_Float when using a locale with a decimal point other than ".". There are unit tests but none that test Zend_Validate_Float under a different locale.

He points out that floats are locale-aware in PHP itself (code examples) and how the current Zend_Validate float package handled it. He has already proposed a fix for the problem and, until its changed in the framework, has provided the simplified code you can use.

0 comments voice your opinion now!
zendframework locales float number zendvalidatefloat


blog comments powered by Disqus

Similar Posts

php|architect: Zend Db 2.0 Kicks Off

Padraic Brady's Blog: Example Zend Framework Blog Application Tutorial - Part 9 PDF Download

Padraic Brady's Blog: New Zend_Feed_Writer Component And Zend_Feed_Reader Enhancements (ZF 1.10)

Zend Developer Zone: Zend Framework 1.0.4 Stable and 1.5RC1 Released

Matthew Weier O'Phinney's Blog: Real-time ZF Monitoring via Zend Server


Community Events

Don't see your event here?
Let us know!


unittest voicesoftheelephpant release interview version framework laravel5 video php7 podcast laravel community language series opinion extension api introduction example library

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework