Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97291 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21225 invoked from network); 5 Dec 2016 18:30:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Dec 2016 18:30:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam.baratz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adambaratz@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.175 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.223.175 mail-io0-f175.google.com Received: from [209.85.223.175] ([209.85.223.175:35294] helo=mail-io0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/85-11772-652B5485 for ; Mon, 05 Dec 2016 13:30:46 -0500 Received: by mail-io0-f175.google.com with SMTP id a124so610622907ioe.2 for ; Mon, 05 Dec 2016 10:30:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ua78Ixht+arB5On8R8B0Ica6RdHNmuTXsKrexlxQjGQ=; b=XVKeRbWOZW89V4TDLAS2PaxnC5wUbajI+Abk3SpV+Wh685+d3xi+62Gmitl5gZP39Y 5D5V4JEdAmHePRFeUZ1qQ6wepyecZ28a9XOpGX+vtzEYO8CUvpg1vnJdQUCx+C6KwdX8 2cEO0ficBfgMgDaJVnS1icVBY/mUEbH9KujP6hJTs4LNXA4dvnRK7iPY0hMJhwH4GmKF ET6kL7bKp0hrlWDsH+Smh/Os+eDCP+DmgCTQ2iNWYQzH+0KS9Yq7fGhx8z6GpmhlMeVA E+4qdo0SPOgvl3F+ElYn4SAhbE1Wgc5FXfIj3R9l/QAuHgguxuQVXMozT+RZLnHNdgDv LxuQ== X-Gm-Message-State: AKaTC010fcvv7LLAksfaM0/y9X29bFMMfy9mcp7VnAUb2vhNPi7/lFVLNknCOP9XSoO5eQ== X-Received: by 10.36.66.76 with SMTP id i73mr9213268itb.50.1480962643709; Mon, 05 Dec 2016 10:30:43 -0800 (PST) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com. [209.85.223.169]) by smtp.gmail.com with ESMTPSA id l73sm3946267ioe.1.2016.12.05.10.30.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Dec 2016 10:30:43 -0800 (PST) Received: by mail-io0-f169.google.com with SMTP id c21so563295548ioj.1 for ; Mon, 05 Dec 2016 10:30:43 -0800 (PST) X-Received: by 10.107.180.212 with SMTP id d203mr49962539iof.101.1480962641395; Mon, 05 Dec 2016 10:30:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.146.10 with HTTP; Mon, 5 Dec 2016 10:30:40 -0800 (PST) In-Reply-To: References: <758680d9-cfe2-4a93-3831-7aa03b4bc9db@nunninger.info> Date: Mon, 5 Dec 2016 13:30:40 -0500 X-Gmail-Original-Message-ID: Message-ID: To: Benoit Schildknecht Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=94eb2c05e3a82a8adc0542ed7ced Subject: Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2 From: adambaratz@php.net (Adam Baratz) --94eb2c05e3a82a8adc0542ed7ced Content-Type: text/plain; charset=UTF-8 > > 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 --94eb2c05e3a82a8adc0542ed7ced--