Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10001 invoked from network); 1 Oct 2017 05:46:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Oct 2017 05:46:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@bohwaz.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@bohwaz.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bohwaz.net designates 5.135.163.151 as permitted sender) X-PHP-List-Original-Sender: php@bohwaz.net X-Host-Fingerprint: 5.135.163.151 sanguine.kd2.org Received: from [5.135.163.151] ([5.135.163.151:55799] helo=mail.kd2.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/87-34435-64180D95 for ; Sun, 01 Oct 2017 01:46:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bohwaz.net; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=zfbISUOdXTCFEC8Covv4MHl9OJpWa57e762qYEz3BeU=; b=iWzpmKbVO4dBQplMGXv1O+8/OXXBFXDESur4m3u1AKNHKrPFJ8ECBndjTaJicLhyEmgnG9kD4oI1YKn93Ec4Vjt8G4ezwPZQe9se9pKC1k//FB3a8HtXu4VEwLFvB5nLrXafGC3GiASh3LFQxFiLFEd/oep9hEKTUkVHDeKaIn8=; Received: from [121.99.159.178] (helo=platypus) by mail.kd2.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dyX5O-0006xY-OJ; Sun, 01 Oct 2017 07:46:43 +0200 Date: Sun, 1 Oct 2017 18:46:38 +1300 To: Dan Ackroyd Cc: "internals@lists.php.net" Message-ID: <20171001184638.169a813e@platypus> In-Reply-To: References: <25903b1e0fc5a726e44b1e3a5ab4aec4@bohwaz.net> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authenticated-User: bwz@bohwaz.net X-Authenticator: login X-Invalid-HELO: HELO is no FQDN (contains no dot) (See RFC2821 4.1.1.1) X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) Subject: Re: [PHP-DEV] [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO From: php@bohwaz.net (BohwaZ) On Wed, 27 Sep 2017 09:47:51 +0100 / Dan Ackroyd said : > On 26 September 2017 at 03:03, BohwaZ/PHP wrote: > > Kia ora, > > > > https://wiki.php.net/rfc/implement_sqlite_openblob_in_pdo > > > Couple of questions: > > > $stream = $pdo->sqliteOpenBlob('test', 'data', 1); > > I tried reading the code but failed; what happens when this is called > on a PDO connection that isn't to an SQLite database? Also, there > should probably be tests around that behaviour. As with other driver-specific methods of PDO, the method won't be defined and an exception (error) will be raised. I'll add that detail ASAP thanks. This is an existing issue when you want to extend PDO to implement lazy connections (eg. you can't call PDOExtended::sqliteCreateFunction until the parent constructor of PDO has been called), but is out of the scope of this RFC.