Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97919 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42866 invoked from network); 22 Jan 2017 01:22:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2017 01:22:53 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.218.54 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.218.54 mail-oi0-f54.google.com Received: from [209.85.218.54] ([209.85.218.54:34933] helo=mail-oi0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/02-00729-C6904885 for ; Sat, 21 Jan 2017 20:22:53 -0500 Received: by mail-oi0-f54.google.com with SMTP id j15so62824293oih.2 for ; Sat, 21 Jan 2017 17:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lerdorf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mdNlHuovNywt8diieGj6Paa/WXDrE2BNo1QSgbaLjhE=; b=XwQm5Dk38txqnKIszEjuocRB3mO1hyv9W0stN6JHAoLn7lWCEw4HpZS1KmT/l/s8ak 5FuekJIW7xPSbSKdUbdpAjYOnjq7HdXMCc7NifxbU91PVbYaBkDkuCLf2HwA35xNpMcc 8QQZHvlBM6420QoX/YIVbqS3emgq3QxMmM2K71jS2K/xbBkAw6wvRbCUgX/NrdZJIEbU ITne/23M5+6RsyXX92LinZXM6cfRphIWUpOgwA0rw+HsQ19wSvWRkivmr+hnTuyvri99 Hx+iDfQSdNJWsMp7X9pJz48tdjfT2f/rm0NWwYKniMHp0ktin5dYwv/lmLQkpqFI6wn5 CJWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mdNlHuovNywt8diieGj6Paa/WXDrE2BNo1QSgbaLjhE=; b=mP2lFwNZBct8LoHZ94+rq1fKLegCeidxc7xqYeD3MjeQeSBdw4rdaBci/ZB/lwX19e 0Elnnx3BEdUOI+Ur0f2EYuna8UXO47gFECNFDuhRy+3VUZGGv/E/JbGP1uzXNIBgQoj+ dq89XHSqJ69IRXEj9Q7zggCptZfunh7pzxWzqVLMl8SIkJEeRi1wj+ffIlnRAv58azPX kMWoRZxyceRo71Qsoz+vVBFixyj83LSBq20QcalQP7j8Fflq7LVPKfIsItWK/JgXEK3/ lakP9HiCl04jVn0PTCtzOVKjFkExp/hIFXJrLwEvnAqzjdYJ2G9TBIx/6ySzdzoVvZpV mfpA== X-Gm-Message-State: AIkVDXLhkCS3YAbS+KlwC5UjKNHGGsg99aURaFPSd1upFnoBJ1fNIgCn7lFFsom3GwbWBun6iLWk13EABlg2Lw== X-Received: by 10.202.55.197 with SMTP id e188mr12068945oia.12.1485048170495; Sat, 21 Jan 2017 17:22:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.121.84 with HTTP; Sat, 21 Jan 2017 17:22:09 -0800 (PST) In-Reply-To: <4bc04e8d-d546-a671-6c88-cb44af2e0529@gmx.de> References: <4bc04e8d-d546-a671-6c88-cb44af2e0529@gmx.de> Date: Sat, 21 Jan 2017 17:22:09 -0800 Message-ID: To: "Christoph M. Becker" Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=001a113cf054ad567b0546a4b866 Subject: Re: [PHP-DEV] pdo_sqlite fd leak From: rasmus@lerdorf.com (Rasmus Lerdorf) --001a113cf054ad567b0546a4b866 Content-Type: text/plain; charset=UTF-8 On Sat, Jan 21, 2017 at 4:47 PM, Christoph M. Becker wrote: > > Anyhow, the SQLite3 documentation states[1]: > > | The sqlite3_prepare_v2() and sqlite3_prepare16_v2() interfaces are > | recommended for all new programs. The two older interfaces are > | retained for backwards compatibility, but their use is discouraged. > > Isn't that reason enough to switch to sqlite3_prepare_v2() ASAP? Note > that this is documented at least for more than nine years[2]! > > [1] > [2] > sqlite.org/c3ref/prepare.html> Yes, but it also says that the behaviour is slightly different on an error condition which could potentially affect peoples' code. Although it seems like a subtle difference and only in the case of an error, so it should be ok to change for 7.2. -Rasmus --001a113cf054ad567b0546a4b866--