<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 10:23:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Danne Lundqvist's Blog: Zend Framework and locales]]></title>
      <guid>http://www.phpdeveloper.org/news/12258</guid>
      <link>http://www.phpdeveloper.org/news/12258</link>
      <description><![CDATA[<p>
In <a href="http://www.dotvoid.com/2009/04/zend-framework-and-locales/">a new post</a> to his blog <i>Danne Lundqvist</i> take a look at using locales in the <a href="http://framework.zend.com">Zend Framework</a> and a "gotcha" that made him look deeper.
</p>
<blockquote>
Last night I spent a couple of hours with <a href="http://framework.zend.com/">Zend Framework</a> and especially Zend_Form. I discovered, and now also <a href="http://framework.zend.com/issues/browse/ZF-6175">reported as ZF-6175</a>, 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.
</blockquote>
<p>
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.
</p>]]></description>
      <pubDate>Wed, 01 Apr 2009 13:44:18 -0500</pubDate>
    </item>
  </channel>
</rss>
