Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97384 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89194 invoked from network); 13 Dec 2016 11:26:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Dec 2016 11:26:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 74.125.82.45 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 74.125.82.45 mail-wm0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:35153] helo=mail-wm0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6A/30-21185-4FADF485 for ; Tue, 13 Dec 2016 06:26:44 -0500 Received: by mail-wm0-f45.google.com with SMTP id a197so104818880wmd.0 for ; Tue, 13 Dec 2016 03:26:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hUgUxDLD1qi6IUvTH2ZxPnLn40qybfWGWmvt9QrOfyE=; b=D1oijwwFcnLbJNyZWYe/5OOLy1aUjkpRG2aOhNRdMmib9bqxkfTLlkRCva6rNrkSzu 2+TXDV4DnKkuwZob52s7Aba1biBo4pPvcZDRe39h+vxuEKop0zfahN+sYCt7peWhGlZp ls76+IsZngYaFFPXcH71PDfpv8nFKSZWYKsvVdQDGsv1IdlTbYOjedvWC3f5/sithLoR eLkG3rQlJc8YP0OqvHCavxWDa+LnYFkF4jI2eXcamLNzT/TrJzGJPI1utfjc5FFHKBYD n6s8fR6jtMnco/MFZc82t9BP9lrmHnzhADieqmlTIkM6+4PwQZPz2qiBwjWqOeldjRcg oAuw== 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=hUgUxDLD1qi6IUvTH2ZxPnLn40qybfWGWmvt9QrOfyE=; b=H8ewrR/kCpv4YIf6J7FghKCWrdLG675lAMItNWG0kz8/caV7hbLjwE9ahokMYC59s7 XTc668BK+QG6Too1C+37JHoLMwppxXsDd/6DCUZur9KsIuhbdHPKTSPfYUAZsE1SscAN Q8qEqlQox+GZmqbCaBpPjd8PauxWf9n+afivO+oYuWyjo+YdnwnOqi6oCUUuxaNLks2D hHKNnn+XavJutCAMsNkxgS4ZcUbJr14WEUgAwxlbejQYZrHz3bq0nu/GHBB+p9jlVeBW aU7Lg2c/waLeoe4z2jZKCcphYWqNyXZrRTAUKwnTTUY2GfYkN2re+Edh7+GSjWVa6CHv IQRA== X-Gm-Message-State: AKaTC03e9K9IkK2Och6AajxBkm5pmA0XnBnvzxFf5KuHSyC/Gf86tDqJnKe8f/uacOEr5FDiB3SDFpG0duLsBQ== X-Received: by 10.28.175.195 with SMTP id y186mr2332567wme.68.1481628401151; Tue, 13 Dec 2016 03:26:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.176.4 with HTTP; Tue, 13 Dec 2016 03:26:40 -0800 (PST) X-Originating-IP: [86.168.50.37] In-Reply-To: References: <758680d9-cfe2-4a93-3831-7aa03b4bc9db@nunninger.info> <933676c1-e828-9eb5-405e-13242fee39a7@lsces.co.uk> Date: Tue, 13 Dec 2016 11:26:40 +0000 Message-ID: To: Matteo Beccati Cc: "guilhermeblanco@gmail.com" , Lester Caine , PHP internals Content-Type: multipart/alternative; boundary=001a114435668a4aa30543887e27 Subject: Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2 From: pthreads@pthreads.org (Joe Watkins) --001a114435668a4aa30543887e27 Content-Type: text/plain; charset=UTF-8 Morning, Can you please update the RFC with the dates that voting started and will end, so that anyone browsing knows when the deadline for decision is without trawling through internals. Cheers Joe On Fri, Dec 9, 2016 at 9:36 AM, Matteo Beccati wrote: > Hi Guilherme, > > it's not really a new method. Just some more output to the existing > debugDumpParams method, which is indeed available after execute() when > emulated prepares is supported by the driver and currently active. The > method output already depends on its location: before/after binding > parameters. > > To me, this is much better than v1 of the RFC that was adding a new > debug method specifically for this. > > That said, I think we should prepare yet another RFC to have the debug > information optionally returned as array. > > > Cheers > > On 09/12/2016 05:27, guilhermeblanco@gmail.com wrote: > > Hi Adam, > > > > Providing my input on why I voted "NO". > > Your proposed new method is not pure. This means it does have distinct > > responses depending on where it's located in the code. > > That's a big no-no for me. > > > > Cheers, > > > > On Tue, Dec 6, 2016 at 12:15 PM, Lester Caine > wrote: > > > >> On 06/12/16 16:30, Adam Baratz wrote: > >>>> 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 > >>>> > >>> I want to be able to write .phpt tests that validate how values are > >> getting > >>> interpolated into emulated prepares. Since this creates a separate code > >>> path, it wouldn't let me validate what gets sent to the server. > >>> PDO::quote() doesn't necessarily produce the same output as > >>> pdo_parse_params(). > >> > >> The whole point of testing is that it tests real results not testing > >> 'test code' that tries to emulate the real world. The whole point of > >> 'emulated prepare statements' is that it creates a SQL query that the > >> target database engine can actually work with rather than one that a > >> more capable database engine will process. Testing the innards of some > >> driver is simply wrong, one tests the whole process is working! And > >> IDEALLY the test suit for PDO should work which ever target is selected, > >> but that is not lightly to happen any time soon. > >> > >> -- > >> Lester Caine - G8HFL > >> ----------------------------- > >> Contact - http://lsces.co.uk/wiki/?page=contact > >> L.S.Caine Electronic Services - http://lsces.co.uk > >> EnquirySolve - http://enquirysolve.com/ > >> Model Engineers Digital Workshop - http://medw.co.uk > >> Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > >> > >> -- > >> PHP Internals - PHP Runtime Development Mailing List > >> To unsubscribe, visit: http://www.php.net/unsub.php > >> > >> > > > > > > > -- > Matteo Beccati > > Development & Consulting - http://www.beccati.com/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114435668a4aa30543887e27--