<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Fri May 24 08:57:12 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/si/jira.issueviews:issue-xml/PCBC-181/PCBC-181.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[PCBC-181] The documentation is wrong for get() in couchbase-api.php</title>
                <link>http://www.couchbase.com/issues/browse/PCBC-181</link>
                <project id="10049" key="PCBC">Couchbase PHP client library</project>
                        <description>I just discovered this while fixing a bug in Basement.&lt;br/&gt;
&lt;br/&gt;
The $cas variable callback is not working on get() but works on getMulti().&lt;br/&gt;
&lt;br/&gt;
Simple example:&lt;br/&gt;
&lt;br/&gt;
Works:&lt;br/&gt;
$client-&amp;gt;set(&amp;quot;foo&amp;quot;, &amp;quot;bar&amp;quot;);&lt;br/&gt;
$cas = null;&lt;br/&gt;
var_dump($client-&amp;gt;getMulti(array(&amp;quot;foo&amp;quot;), $cas));&lt;br/&gt;
var_dump($cas);&lt;br/&gt;
&lt;br/&gt;
array(1) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;[&amp;quot;foo&amp;quot;]=&amp;gt;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;string(3) &amp;quot;bar&amp;quot;&lt;br/&gt;
}&lt;br/&gt;
array(1) {&lt;br/&gt;
&amp;nbsp;&amp;nbsp;[&amp;quot;foo&amp;quot;]=&amp;gt;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;string(20) &amp;quot;11699665754086047744&amp;quot;&lt;br/&gt;
}&lt;br/&gt;
&lt;br/&gt;
Doesn&amp;#39;t work:&lt;br/&gt;
$client-&amp;gt;set(&amp;quot;foo&amp;quot;, &amp;quot;bar&amp;quot;);&lt;br/&gt;
$cas = null;&lt;br/&gt;
var_dump($client-&amp;gt;get(&amp;quot;foo&amp;quot;, $cas));&lt;br/&gt;
var_dump($cas);&lt;br/&gt;
&lt;br/&gt;
string(3) &amp;quot;bar&amp;quot;&lt;br/&gt;
NULL&lt;br/&gt;
&lt;br/&gt;
The doc gets returned properly, but the cas value is not set. Also, when you set $cas to &amp;quot;&amp;quot; or false (not null), then it complains with a dubios error:&lt;br/&gt;
Warning: Couchbase::get() expects parameter 2 to be a valid callback, no array or string given in /Users/michael/Webserver/basement-test/index.php on line 10&lt;br/&gt;
Note that its a warning and not an exception on the OOP interface!&lt;br/&gt;
</description>
                <environment>MacOS X, PHP 5.4</environment>
            <key id="21813">PCBC-181</key>
            <summary>The documentation is wrong for get() in couchbase-api.php</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="daschl">Michael Nitschinger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Jan 2013 06:18:12 -0600</created>
                <updated>Fri, 18 Jan 2013 07:31:21 -0600</updated>
                    <resolved>Fri, 18 Jan 2013 07:31:21 -0600</resolved>
                            <version>1.1.2</version>
                                <fixVersion>1.1.3</fixVersion>
                                <component>docs</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="47963" author="daschl" created="Thu, 17 Jan 2013 07:46:46 -0600"  >Okay after more investigation of course the notation is:&lt;br/&gt;
&lt;br/&gt;
get(key, callback, cas)&lt;br/&gt;
&lt;br/&gt;
then only the documentation needs to be updated here:&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://github.com/couchbase/php-ext-couchbase/blob/master/example/couchbase-api.php#L320&quot;&gt;https://github.com/couchbase/php-ext-couchbase/blob/master/example/couchbase-api.php#L320&lt;/a&gt;</comment>
                    <comment id="48055" author="trond" created="Fri, 18 Jan 2013 06:50:18 -0600"  >&lt;a href=&quot;http://review.couchbase.org/#/c/24053/&quot;&gt;http://review.couchbase.org/#/c/24053/&lt;/a&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9741</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>