<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sat May 18 06:34:27 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-165/PCBC-165.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-165] Docs have return type scalar ( Binary object ), which doesn&apos;t help much</title>
                <link>http://www.couchbase.com/issues/browse/PCBC-165</link>
                <project id="10049" key="PCBC">Couchbase PHP client library</project>
                        <description>A lot of the PHP methods are documented to return scalar ( Binary object ), which is not very helpful. What does the binary object represent?&lt;br/&gt;
&lt;br/&gt;
For example, the set method:&lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-store.html#table-couchbase-sdk_php_set&quot;&gt;http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-store.html#table-couchbase-sdk_php_set&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
What does it really return? By looking at the source, I think it returns bool(false) if it fails, and the new CAS id for the item (represented as a string in decimal notation) on success. Saying &amp;quot;Binary Object&amp;quot; is a long ways away from understanding this. The docs (and probably the underlying code, too, but hey, it&amp;#39;s PHP and bound to turn into spaghetti, right?) need to create meaningful names for these things, like &amp;quot;Returns: CAS id string or false&amp;quot;, and then use those names consistently.&lt;br/&gt;
&lt;br/&gt;
Another example, just below, is setMulti:&lt;br/&gt;
&lt;br/&gt;
It returns a PHP Array, where the index of the array is the key that was set, and the value is -- I think -- a CAS id string or false. I could be wrong here, I didn&amp;#39;t do a complete test on it. But I think that demonstrates exactly the point. Currently it&amp;#39;s very difficult for anyone to use the library correctly based on our API reference.&lt;br/&gt;
&lt;br/&gt;
The tests in the source code are a helpful source of info in the mean time, until the reference docs can be improved.&lt;br/&gt;
</description>
                <environment>&lt;a href=&quot;http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-summary.html&quot;&gt;http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-summary.html&lt;/a&gt;</environment>
            <key id="21333">PCBC-165</key>
            <summary>Docs have return type scalar ( Binary object ), which doesn&apos;t help much</summary>
                <type id="4" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/improvement.png">Improvement</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="mccouch">MC Brown</assignee>
                                <reporter username="TimSmith">Tim Smith</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Dec 2012 13:12:39 -0600</created>
                <updated>Wed, 30 Jan 2013 07:50:26 -0600</updated>
                    <resolved>Wed, 30 Jan 2013 07:50:26 -0600</resolved>
                            <version>1.1.0</version>
                                                <component>docs</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="46350" author="TimSmith" created="Wed, 19 Dec 2012 14:21:26 -0600"  >See related bug &lt;a href=&quot;http://www.couchbase.com/issues/browse/PCBC-170&quot; title=&quot;Document error code, etc.&quot;&gt;&lt;strike&gt;PCBC-170&lt;/strike&gt;&lt;/a&gt; &amp;quot;Document error code, etc.&amp;quot;. Return type and error code are related, and both need to be exhaustively documented, but they&amp;#39;re not exactly the same thing.&lt;br/&gt;
&lt;br/&gt;
Thanks!</comment>
                    <comment id="48999" author="mccouch" created="Wed, 30 Jan 2013 07:50:26 -0600"  >I&amp;#39;ve updated the PHP documentation and tables to be more precise about the information/data return from each call, the possible exceptions raised during the process, and I&amp;#39;ve provided a list of the error codes for PHP responses. There is some further work to do to ensure the links between the elements are complete, and I should be completing that shortly. </comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9489</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>