Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96346 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96707 invoked from network); 13 Oct 2016 18:42:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2016 18:42:36 -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:52978] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/11-41968-A95DFF75 for ; Thu, 13 Oct 2016 14:42:35 -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 6F586200235; Thu, 13 Oct 2016 20:42:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1476384151; bh=tKLz3FixfHzgNkCsLckEQw5Kx/oiyyWzjexeRcTtji0=; h=Subject:To:References:From:Date:In-Reply-To:From; b=Y/TnjOgsI4Bl3YN4R2T8eu1JRAWoq1R/DO1HU+5F6eUf0A58aT9jfWMnL54NVmeB7 L4Dbm/dCYm8LukRgh8xDhSghWW7SmFP0LQHMMwpUC5ZN3tmKJzgDfQlydLZDScR87k Ebbvv9mGpjUvIISM45RDVrYbsDkdf+SEBXqHinAd92A/+R2l+Qw6MjgcWfGNBR5hwT 5OeKEs2lcLwd3PypNsjNM0HAeLp8+eFsxOEnZA2cPppAlwP+pLp6nauxTk5g8EqVRR pVkUXChb+iBHAd269k81zdpEH8+5WpVCX/dwM/czcXswg4IFiDKXRfpzHZM2ytZDbJ PjE4nOHWeP1GA== To: Adam Baratz , "internals@lists.php.net" References: Message-ID: <9987c0a5-2315-0a8c-0f96-7a45323fa86d@beccati.com> Date: Thu, 13 Oct 2016 20:42:27 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PDOStatement::activeQueryString() From: php@beccati.com (Matteo Beccati) Hi, On 13/10/2016 19:59, Adam Baratz wrote: > I'd like to add a new method that would return the prepared statement as it > was executed. It's common for people I work with to want this info for > debugging, but you can't get it from userland. The functionality is similar > to, but distinct from PDOStatement::debugDumpParams(). > > I figure it's always easier to discuss proposals alongside real code: > https://github.com/php/php-src/pull/2159 > > Please let me know what you think, if an RFC would be appropriate, or what. To be perfectly honest, my wish is that EMULATE_PREPARES could be deprecated and removed and I see something this as a step in the opposite direction. That said, I think a tiny RFC that explains what's the problem you are trying to solve, the current issue and possible other solutions would be very welcome. This is an API change and most likely will require all the drivers to be adapted. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/