Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100782 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63204 invoked from network); 27 Sep 2017 09:28:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Sep 2017 09:28:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.123.236 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.123.236 box.beccati.com Received: from [176.9.123.236] ([176.9.123.236:54612] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/D2-34114-82F6BC95 for ; Wed, 27 Sep 2017 05:28:08 -0400 Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 89D942000A3; Wed, 27 Sep 2017 11:28:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1506504485; bh=tpJYR6reWoI6gUchTxDfdXS0blCE+52LBr/qPLIvLEI=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=NyQVMe0+d2RXJL8Q/aZ49uXgWruYqwKURYm59SWTnDiC9XDY20L3hkX5DeCLt6rNz NfGcNN+tQIjc4gMhC6wzYqOVGKXPXdHFUxEO9TFJUgCKfld0xAbpqNyUh8PlBY+qTH Wvg95GxrALPXK9RiU/RNZptksskoL1/kjeF+mSdWnt3eEFLvP5PrinDd1mCsaUtQcK mzudCupq9cxcgBp3JfZC9NBNXoO4bJ9G29e2To8id+Bq4kzlKz17wDbPRWXp7ccah0 8MmfLxsb3dUmrENDlul4vyub3cLKeh1DXCJVJju2UW2nZ82yZ8eslsZidNJn1ajVu+ WeFFtfWo6ZHdw== To: Marco Pivetta , Lester Caine Cc: PHP Internals List References: <25903b1e0fc5a726e44b1e3a5ab4aec4@bohwaz.net> Message-ID: Date: Wed, 27 Sep 2017 11:28:03 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO From: php@beccati.com (Matteo Beccati) Hey Marco, On 27/09/2017 11:04, Marco Pivetta wrote: > First time I agree with Lester here, so please take note :-P Anything you say can and will be used against you ;-) > Unless the type of the connection is PDOSQLiteConnection, this specific > patch adds methods that are not interfaced, and need to be checked for > existence every time. This is error-prone and just an annoyance that will > likely need abstraction once it reaches "real world" (layers that isolate > apps from PDO's inherent radioactivity). This is the (possibly wrong) pattern that PDO has been using when providing something that's relevant only for a specific driver. Such methods should be used with caution. What's your suggestion? Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/