couchbase/php-ext-couchbase — pull request #1 by jaymecd (2012-09-25 14:26:16+00:00)
Title: Throw exception from __construct() of failure

Previously, code `$cb = new Couchbase();` did not throw any exceptions if connection/authentication has failed, just raises php warning and creates a Couchbase instance with `_handler = NULL`. Any other methods of this class raising another warning `unintilized couchbase`, means it was not possible to handle such error OO way.
This patch allows to throw exception from `__construct()` of object-oriented call and raises php warning (as it was before) in procedural call.