Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103183 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47522 invoked from network); 19 Sep 2018 21:34:45 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.17.20) by pb1.pair.com with SMTP; 19 Sep 2018 21:34:45 -0000 Received: from [192.168.2.137] ([91.8.166.159]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LcVOE-1fL8Vc0qv8-00jpjv; Wed, 19 Sep 2018 19:41:10 +0200 To: BohwaZ , internals@lists.php.net References: <381a49ae-eed5-889a-8d0c-bec4b4531d82@gmx.de> <20180919185324.6fdb080a@platypus> Message-ID: <06392bc9-2acb-6992-f997-436b76a3eb92@gmx.de> Date: Wed, 19 Sep 2018 19:41:11 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180919185324.6fdb080a@platypus> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:z6VqWgX1zRNm7OP+fo8AL7hfTl1eIkZwSIK3TVLiCpzxq8ct/PK oUul3ri61BV4QInJNhz/aOM2oQgNv7G4IizrMcF1thQilAAcajgiE4X8fiUP8NllzycNwjW Bzc00S3oJM3vKXZB57V1EwehUqFLWcodV6YQv7fzZCvVs+FBvb3Ni6cY1BxsSB5SKWFbY8g JGWcdI9pKtDj6E3+vSFKA== X-UI-Out-Filterresults: notjunk:1;V01:K0:VqyTmmba3do=:WrFKffQRpPYln4agPeKwY9 lCIGrDv4mMn98ZkkQ+zuzvuussXS8IgkGB1QziimXTaefk3Sq+DUPlHKMmTtKUYDQKHsCowDe cresi0VOYehPbkE1dlNU8aTJrbdGWZUKHZ56HT9vw6srgq8Gfxi/BgrrtN0I9B8O285fiAHRN dZThunvddxDDIOtEdUqMYiE0IYUeBd9/QJFsV67oosXYUR8cAXj7ESR1IO9wUXlITufLWg/Ar HiCt5s6dwQ5cr4EZSmEDYLNBhH9kQDpnCqvzJTno77aFgVMQ81heXvkRLsNr7ipkOAxcPwvyb Q43VYmPcCohyyJ7g93BC0YggBikPT73HzV8Vb1e39jlsAogl/H3Q9gXNW7I5TOtdlihxcLHK3 6QO8J/jivSD1UdEB09fPA/F0TTx6QUk5zQ7DI2EG41fZ/iX1xJEvXZnIb8pdWg1QBFXwja17S JsDdDTUYwLhH5WZpAoVGsX8FLE3OL2tO0i1/hFbB2rIu3f4VOhVBSkFLtxf1nTLfX58cCm2BW 7CFtwGZn8lcCCedUqbtc+BtkJbHMZ3XV/R5E7E13oyIgEtIyqHteD3WF2Tsu8S3Gdt9QXTrHm AjTzvpS7BZtLubIr/BAYBPy7O+Z7g1TMTxDTLr3fDcKJylIq2gx+PABTjpo/QHGvSpLDPP+A7 /KeIONm02mfSPTKgKz2aHq4MgFnKvy7sUCJ0kPUbQMj9IENvxxWulPuZjvCWS8dJ9Us3//aLO wduRXbpCujzGy/Jj64YJSQdxjyoKB2qSfs8Bi1KqIQ+cx28yQtlFhQsRXJD6CWDIu8kB4Jlx5 sU9CVP+re5FYJDmuDtNGAVKeqDbneAs0S6TF3cBINYt7I7FLBY= Subject: Re: [PHP-DEV] Unbundle libsqlite3? From: cmbecker69@gmx.de ("Christoph M. Becker") On 19.09.2018 at 18:53, BohwaZ wrote: > On Mon, 17 Sep 2018 15:16:13 +0200 / "Christoph M. Becker" > said : > >> ext/sqlite3 requires libsqlite ≥ 3.3.9[1] which has been released on >> 2007-01-04[2] (i.e. more than eleven years ago!). ext/pdo_sqlite has >> no specific version requirement; there is a check for >> sqlite3_open()[3] which I believe is available since 3.0.0. > > I believe that SQLite3Stmt::readOnly requires SQLite 3.7.4 released in > 2010, bundled since PHP 5.3.6 (!). Ah, indeed[1]! > There is also a PR patch (from me) that should make it in PHP 7.4 that > implements this feature in pdo_sqlite too. PR #2698[2] seems to require an RFC. IMHO, it's best to present RFCs and voting on them as early as possible (instead of rushing them at the last moment). :) > I believe this is the most recent feature that we are using. But it > should return false if the SQLite version installed is older than that > (IMHO it should throw an exception instead, but that's the current > behaviour anyway). I agree that an exception would be better. A sensible alternative might be to not even include the method for older libsqlite3. Either way, a PR targeting master would be welcome. [1] [2] -- Christoph M. Becker