Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100819 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81105 invoked from network); 3 Oct 2017 22:41:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2017 22:41:27 -0000 Authentication-Results: pb1.pair.com header.from=php@bohwaz.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@bohwaz.net; spf=pass; 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:53182] helo=mail.kd2.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/83-34435-01214D95 for ; Tue, 03 Oct 2017 18:41:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bohwaz.net; s=mail; h=Message-ID:References:In-Reply-To:Cc:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To; bh=Pw1Mw2nN4aTShASALZv5pJhOTU5IYBwZem//wyX5vYA=; b=bmIr3YB8p4hcvMcd901AR/nmYy/fz6jddOO6YxncpD99v5dS/lV2tKBkoU4Fc1imxXpkBywt+WOLjiUahgeKeQMltQQqaNjEwzycB9DDohaJBdFV1SBJdtEr5fEiBVY91GevMXQ/B1kGAhk8jZQ+2nZ/wyHJxInOT/qidVEtisA=; Received: from narragoon by mail.kd2.org with local (Exim 4.84_2) (envelope-from ) id 1dzVsL-0004fI-Eh; Wed, 04 Oct 2017 00:41:17 +0200 To: Dan Ackroyd X-PHP-Originating-Script: 0:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 04 Oct 2017 11:41:17 +1300 Cc: internals@lists.php.net In-Reply-To: References: <25903b1e0fc5a726e44b1e3a5ab4aec4@bohwaz.net> <0607d622-caa9-ae1d-33db-1958a0ff0500@gmx.de> <20171001185540.5e572e58@platypus> <209262d743236c86c8d66972922fba13@bohwaz.net> Message-ID: <7568ec6becf883d3abbb78d55ad7a87c@bohwaz.net> X-Sender: php@bohwaz.net User-Agent: Roundcube Webmail/1.1.5 Subject: Re: [PHP-DEV] Re: [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO From: php@bohwaz.net (BohwaZ/PHP) > Taking it to a better solution is that the method sqliteCreateFunction > shouldn't exist on the PDO class, but instead on a PDOSqlite that > extends PDO. > > class PDOSqlite extends PDO { > public function createFunction(...) {...} > } > > class PDO { > public static function connect(string $dsn [, string $username [, > string $password [, array $options ]]]) { > // if connecting to SQLite DB { > return new PDOSqlite(...); > } > } > } > > This might be a mistake in how it was implemented originally. Looking > back it seems that it was implemented before we had the RFC > process....and is exactly the type of 'sub-optimal' implementation the > RFC process is meant to prevent. Yes I do agree that the method overloading of PDO by drivers is not the best to say the least. If you feel like rewriting a large part of PDO feel free :) but I don't have time for that, and it's not the subject of this RFC :)