Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97292 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23998 invoked from network); 5 Dec 2016 18:55:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2016 18:55:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.161.169 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.161.169 mail-yw0-f169.google.com Received: from [209.85.161.169] ([209.85.161.169:34489] helo=mail-yw0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/06-11772-408B5485 for ; Mon, 05 Dec 2016 13:55:03 -0500 Received: by mail-yw0-f169.google.com with SMTP id t125so258235389ywc.1 for ; Mon, 05 Dec 2016 10:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daveyshafik-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=/x/bXDBjcCthmkvtBt9ryRffmKiOZ0KqGk36dikWtJk=; b=Zjp/YuqIPs1sFDEjdLL/11c+KJAmstZZJJvg5F+c4wFUV/3WBFRynrOVmLx9woVEqb PbCKF/xQ5t4SfQ8HopoHOZ1pawOZN9WDVHNnLGtqFV3YkBAsL9e+dDA4AGPIHQ8RJzUn ebt5TbbRT+bq/DGMHmdUQBIzjWkbKXtBnu3TSYpIFM8H94k8se9+ZPRU7Eit/UdllMOt 9E6xsxeMK3xbBsRhzp9/jqFhIciekc0+MecdvvPEEHf9IIyYLINSd3pv/gImCHBnY0t/ ZnIJoTmLCk+romsoOMCaa8140AgZMf0lTEgEs3X14P2pNXed9wVS08W9ds43UTvVyn+q /Jnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=/x/bXDBjcCthmkvtBt9ryRffmKiOZ0KqGk36dikWtJk=; b=c6ByXMzkq0IsZY28qABO2pn0kVddhMpDgIvPicN93x7vA4smnd29hItHim/PDKk9gp n5d5xCZzEYsM4xz6ygdJ/N55p+87wFwaf0SCgmclMcSM020FK6AkKwnbyTK1LGpUWhJJ MvoseQzphCJSvet8h53rcodsCHrF+wdMxoUESXKbKstr4hKrFa7NVwaMFxnan6VL+15J OgsPEW46y05H2EYmWX+Yc5nV2+dDO8IwCbOOL4eVk8+hQSFTzR1XS3x0iJicsJV9UIp1 LwRVEfIpTHvseDHVsr+4a5fUrRy5SlZu39XcovMUmiH8U5AsxjtJ4GRXbcez89ENnHA+ rQTA== X-Gm-Message-State: AKaTC03wg7oxXJyR79xbPhpovjdSqyqLDp7893gnM13X5xcNwMCM5cdQuYINQTMawjAX+GMg+Fk3z5RiqDDDp8qX X-Received: by 10.13.234.19 with SMTP id t19mr62115469ywe.204.1480964098454; Mon, 05 Dec 2016 10:54:58 -0800 (PST) MIME-Version: 1.0 Sender: me@daveyshafik.com Received: by 10.129.160.147 with HTTP; Mon, 5 Dec 2016 10:54:57 -0800 (PST) In-Reply-To: References: <758680d9-cfe2-4a93-3831-7aa03b4bc9db@nunninger.info> Date: Mon, 5 Dec 2016 10:54:57 -0800 X-Google-Sender-Auth: n3JcWOAdPMC_EQzhUzcxZvg6oqc Message-ID: To: Adam Baratz Cc: Benoit Schildknecht , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=94eb2c06924203b3bc0542edd353 Subject: Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2 From: davey@php.net (Davey Shafik) --94eb2c06924203b3bc0542edd353 Content-Type: text/plain; charset=UTF-8 This issue is not difficult to solve in userland, at least well enough for debugging in my experience. Here's an older example I wrote up on my blog that worked (but I'm told is broken right now): https://daveyshafik.com/archives/605-debugging-pdo-prepared-statements.html Thanks, - Davey On Mon, Dec 5, 2016 at 10:30 AM, Adam Baratz wrote: > > > > Could you please explain what's the use case? As far as I'm concerned > >> such information would only be useful during PDO driver development, > >> phpt files and bug reporting / fixing. > >> > > > > It's pretty simple : debugging and optimizing scripts and statements. > I've > > lost hours, manually emulating tons of statements, or trying to guess > > what's happening when I have something like 1000+ prepared values (mass > > insert). And since I have to do it by hand, mistakes happen, so I lose > even > > more time debugging my emulations. Having a direct access to the emulated > > statements, without having to dirtily parse a dump, will be a huge plus > for > > me, my team and the performances of my debug component. > > > I understand the use case -- I submitted the "v1" RFC, after all -- but the > discussion for the last RFC seemed to stall at an "agree to disagree" > stage. My hope with "v2" is that it'll be favored more than the first one, > which basically squeezed past the required margin for acceptance. > > That said, do you have thoughts on a third approach? It might be that we > should do what Matteo suggested earlier in this thread: make something more > robust for getting structured data out of statements. To be honest, the v2 > RFC does exactly what I need. It'll let me write .phpt tests and do one-off > debugging. > > But if your take is that simply that you prefer v1 over v2, the regular > vote should cover that. > > Thanks, > Adam > --94eb2c06924203b3bc0542edd353--