Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66115 invoked from network); 28 Nov 2016 16:05:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2016 16:05:17 -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:45722] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/45-19217-BB55C385 for ; Mon, 28 Nov 2016 11:05:15 -0500 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 84A7020022D; Mon, 28 Nov 2016 17:05:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1480349111; bh=MJiriKdcKqAIwOq5+uOhNSNbmYa64k575/y1yQRUxyY=; h=Subject:To:References:From:Date:In-Reply-To:From; b=kYKihM+FELx8PwmMWsSJOwC4kddxdegTPSlejmqvKzjVEQUClD8IUZMGbzqxK2j+e 8ZTdBrAhti+HecTN7RxjsXcv6eDjwOGWHFCOB78IYf5ckMPjdOMSeVAl4MQ2rQ1NPL JlR2TBZ+Hx2oJaTRFXKUqwDcEm30LuoLWAX4fem6WdziP1Y0lwHVPFuVfpHU1oIKOY VoVQPKZTitm1O6MtcnfzF0NEVYnL98VlY1tTVT1Ml9C8HzqWNJyhbvCyCdRpDrNRO6 V1mte0Fon83X1lrNWY1mLOJV52WEXEzGrXIrexOzA+6C0yqQdbYdT2jk054sgFLb58 B3EuPYQtLExIA== To: Adam Baratz , "internals@lists.php.net" References: Message-ID: Date: Mon, 28 Nov 2016 17:05:07 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2 From: php@beccati.com (Matteo Beccati) Hi Adam, On 28/11/2016 16:29, Adam Baratz wrote: >> Based on my second thoughts on my initial approach, I created an RFC to >> supplant it: >> https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation_v2 >> > > I'd appreciate any feedback on this RFC, especially from any of the people > who voted against the original[1]. v2 seems more reasonable to me. I would not use "Parsed SQL" though, as it's not just the result of parsing. In fact it could effectively be what has been sent to the backend, regardless of statement emulation... however, nothing better than "Sent SQL" comes to mind atm. I.e. in case of pdo_pgsql: SQL: "SELECT * FROM tbl WHERE x = ?" Sent SQL: "SELECT * FROM tbl WHERE x = $1" (could be available before execute) or w/ emulated prepares: Sent SQL: "SELECT * FROM tbl WHERE x = 'foo'" (only available after execute) For consistency, I would prefer to only add the information after execute() has been called. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/