<!--
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Wed Jun 19 14:01:59 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+PCBC+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.couchbase.com/issues/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Couchbase</title>
        <link>http://www.couchbase.com/issues/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+PCBC+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>5.2.4</version>
            <build-number>845</build-number>
            <build-date>26-12-2012</build-date>
        </build-info>
<item>
            <title>[PCBC-219] Floating point error in PHP Couchbase Library 1.1</title>
                <link>http://www.couchbase.com/issues/browse/PCBC-219</link>
                <project id="10049" key="PCBC">Couchbase PHP client library</project>
                        <description>--------------&lt;br/&gt;
$value = 50.00;&lt;br/&gt;
$couchbase-&amp;gt;set(&amp;#39;testvalue&amp;#39;,$value,300);&lt;br/&gt;
echo &amp;quot;getting value now... &amp;quot;;&lt;br/&gt;
var_dump($couchbase-&amp;gt;get(&amp;#39;testvalue&amp;#39;));&lt;br/&gt;
-------------&lt;br/&gt;
float(5011)&lt;br/&gt;
Not 50.00.&lt;br/&gt;
&lt;br/&gt;
Diving into the couchbase console, it is stored correctly. Something is wrong with the get method coming out of the PHP extension.&lt;br/&gt;
This is happening on any 2 decimal number with .00 as the extension. Caught this in an ecommerce application ... needless to say $ impact of giving someone $5011 instead of $50.00 is damaging.&lt;br/&gt;
Can anyone confirm this behavior in their environments?</description>
                <environment></environment>
            <key id="23587">PCBC-219</key>
            <summary>Floating point error in PHP Couchbase Library 1.1</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="trond">Trond Norbye</assignee>
                                <reporter username="trond">Trond Norbye</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Apr 2013 04:04:18 -0500</created>
                <updated>Tue, 18 Jun 2013 00:23:39 -0500</updated>
                    <resolved>Tue, 16 Apr 2013 02:45:57 -0500</resolved>
                            <version>1.1.2</version>
                                <fixVersion>1.1.4</fixVersion>
                                <component>library</component>
                                <votes>0</votes>
                        <watches>3</watches>
                                                    <comments>
                    <comment id="55117" author="trond" created="Tue, 16 Apr 2013 02:45:57 -0500"  >This was already fixed in some version before 1.1.4. I added a new testcase to verify this.&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;http://review.couchbase.org/25694&quot;&gt;http://review.couchbase.org/25694&lt;/a&gt;</comment>
                    <comment id="60778" author="shaunt" created="Tue, 11 Jun 2013 14:31:27 -0500"  >We are now running on 1.1.5 and still see the issue happening.  Noted on over a dozen of our boxes here, both in development and production environments.  </comment>
                    <comment id="60849" author="trond" created="Wed, 12 Jun 2013 02:46:28 -0500"  >What is your platform and PHP version so I can try to reproduce this?</comment>
                    <comment id="60970" author="shaunt" created="Thu, 13 Jun 2013 12:35:36 -0500"  >PHP 5.4.12, CentOS release 5.6 (Final)</comment>
                    <comment id="61263" author="trond" created="Mon, 17 Jun 2013 02:41:14 -0500"  >I&amp;#39;ve had some trouble installing CentOS 5.6 locally, but so far I&amp;#39;ve tested it with success on:&lt;br/&gt;
&lt;br/&gt;
Ubuntu 13.04&lt;br/&gt;
MacOS X&lt;br/&gt;
CentOS 6 (php from yum)&lt;br/&gt;
CentOS 5.7 (PHP 5.4.16)&lt;br/&gt;
&lt;br/&gt;
I have get access to a CentOS 5.6 system to debug the problem there&lt;br/&gt;
</comment>
                    <comment id="61325" author="trond" created="Mon, 17 Jun 2013 23:46:00 -0500"  >Hi, I finally got around to get access to a 5.6 box, but I doesn&amp;#39;t fail there either:&lt;br/&gt;
&lt;br/&gt;
[&lt;a href=&apos;mailto:trondn@ip-10-36-176-84&apos;&gt;trondn@ip-10-36-176-84&lt;/a&gt;]~/compile/php-ext-couchbase/example% cat /etc/redhat-release&lt;br/&gt;
CentOS release 5.6 (Final)&lt;br/&gt;
[&lt;a href=&apos;mailto:trondn@ip-10-36-176-84&apos;&gt;trondn@ip-10-36-176-84&lt;/a&gt;]~/compile/php-ext-couchbase/example% /opt/php/bin/php --version&lt;br/&gt;
PHP 5.4.16 (cli) (built: Jun 17 2013 16:44:15)&lt;br/&gt;
Copyright (c) 1997-2013 The PHP Group&lt;br/&gt;
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies&lt;br/&gt;
[&lt;a href=&apos;mailto:trondn@ip-10-36-176-84&apos;&gt;trondn@ip-10-36-176-84&lt;/a&gt;]~/compile/php-ext-couchbase/example% cat float.php&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
&lt;br/&gt;
$cb = new Couchbase(&amp;quot;localhost&amp;quot;);&lt;br/&gt;
&lt;br/&gt;
$val = 50.0;&lt;br/&gt;
var_dump($cb-&amp;gt;set(&amp;quot;foo&amp;quot;, $val));&lt;br/&gt;
var_dump($cb-&amp;gt;get(&amp;quot;foo&amp;quot;));&lt;br/&gt;
?&amp;gt;&lt;br/&gt;
[&lt;a href=&apos;mailto:trondn@ip-10-36-176-84&apos;&gt;trondn@ip-10-36-176-84&lt;/a&gt;]~/compile/php-ext-couchbase/example% /opt/php/bin/php -c couchbase.ini float.php&lt;br/&gt;
string(19) &amp;quot;5776353753026134016&amp;quot;&lt;br/&gt;
float(50)&lt;br/&gt;
&lt;br/&gt;
</comment>
                    <comment id="61326" author="ingenthr" created="Tue, 18 Jun 2013 00:23:39 -0500"  >Note, this was 64-bit, but the bug didn&amp;#39;t indicate whether it was observed on 32-bit or 64-bit.</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>10485</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>