<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Wed May 22 13:25:28 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-58/PCBC-58.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-58] Couchbase.so - constructing Couchbase() doesn&apos;t throw an exception on connection error</title>
                <link>http://www.couchbase.com/issues/browse/PCBC-58</link>
                <project id="10049" key="PCBC">Couchbase PHP client library</project>
                        <description>When constructing Couchbase() and it fails to connect, no exception is thrown, which results in that condition being impossible to be caught... It would be really helpful if the constructor could throw an exception...&lt;br/&gt;
&lt;br/&gt;
Steps to reproduce:&lt;br/&gt;
&lt;br/&gt;
1. shut down Couchbase server or provide invalid host&lt;br/&gt;
2. wrap couchbase constructor in try..catch block, e.g.&lt;br/&gt;
try {&lt;br/&gt;
	$cb = new Couchbase($host, $couchbase[&amp;#39;username&amp;#39;], $couchbase[&amp;#39;password&amp;#39;], $couchbase[&amp;#39;bucket&amp;#39;]);&lt;br/&gt;
} catch(Exception $e) {&lt;br/&gt;
	// couldn&amp;#39;t connect to couchbase&lt;br/&gt;
	error_log(&amp;quot;cb error&amp;quot;);&lt;br/&gt;
}&lt;br/&gt;
3. notice how no exception is caught when couchbase fails to connect...&lt;br/&gt;
</description>
                <environment></environment>
            <key id="16386">PCBC-58</key>
            <summary>Couchbase.so - constructing Couchbase() doesn&apos;t throw an exception on connection error</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="2">Won&apos;t Fix</resolution>
                    <security id="10011">Public</security>
                        <assignee username="mnunberg">Mark Nunberg</assignee>
                                <reporter username="mssteuer">Michael Steuer</reporter>
                        <labels>
                        <label>ext/couchbase</label>
                    </labels>
                <created>Fri, 23 Mar 2012 12:17:46 -0500</created>
                <updated>Mon, 11 Feb 2013 14:09:04 -0600</updated>
                    <resolved>Wed, 7 Nov 2012 15:44:54 -0600</resolved>
                            <version>1.0</version>
                                                <component>library</component>
                                <votes>1</votes>
                        <watches>1</watches>
                                                    <comments>
                    <comment id="43490" author="ingenthr" created="Wed, 7 Nov 2012 15:22:23 -0600"  >Mark: Please determine if this issue is still valid and help me triage it into the appropriate release.  I&amp;#39;ve assigned it to you for triage, not necessarily to fix it.</comment>
                    <comment id="43504" author="mnunberg" created="Wed, 7 Nov 2012 15:44:54 -0600"  >Connection error handling has been extensively dealt with and resolved in later issues..&lt;br/&gt;
&lt;br/&gt;
In summary, while no exception is thrown, it is possible to check if the connection succeeded or not.</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10001">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="20130">PCBC-134</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="17173">PCBC-70</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>9842</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>