Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97345 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50612 invoked from network); 9 Dec 2016 04:27:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2016 04:27:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.176 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.161.176 mail-yw0-f176.google.com Received: from [209.85.161.176] ([209.85.161.176:33256] helo=mail-yw0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 01/AB-12501-2C23A485 for ; Thu, 08 Dec 2016 23:27:47 -0500 Received: by mail-yw0-f176.google.com with SMTP id r204so5717319ywb.0 for ; Thu, 08 Dec 2016 20:27:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZxqVN+8TViArFlEsZhImuSQt3awLs5HLB2oVoUe5A/U=; b=K1kblGWvf7hUpMx9jkyU5/upGbOo71SJk1SgVd8xF9mTWCjhufsh5wB1H7cDxsZ0FV 4x9f19XYf7vOwOWfWadkZZyppG6hXUUXPOpAiW/QX2VUKXNjeIF2r7ILC0suTLw4bBvu CQhLauJtmD3C7Z0eFr3Wxpk7IUOSwgu/+Jo4ssTAtgup41r3S7zYiyvV7MjaGr9nbBzw KIiBcygoTbbn4b0bLyD1L+OqOyRSCDcQvjgEFr/eV2YZcbEjkKktMXPRYiGzSBl6vqcm PkuCcUkb++o/uP5BEwcB1h+90Awi0gMVmkH5cI17DcTf+noCgT3zW0WrNMyDRipRhLEd IRKg== 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=ZxqVN+8TViArFlEsZhImuSQt3awLs5HLB2oVoUe5A/U=; b=InyoZ68dPCzIlbY0EQXbuwyj7pleVCMWtZzsMbE1ozsBlluo4z6hbCR1IAdwXzAKy3 C95KGZFUOcfCaQhCYa0IeJaiofxitao+h6JJgEzvnrskLIAvzysZcpaI3L4IvdioEm+l oBEkIIZSqlX34MVsrVluD3hdu6YzWeLq5F1zzAfQmBSjH/zV7iCpCcRZfICKcOSoWiMR U1aNeqKtqGC/quXcWkSxvJYlgVsovTVdRdaUmjkRc4Wp+oGluPjT+0wU+XCo1anB7ahY 8h2WCIuQfU/LCKPnsHtOzCvMt+ougxauQdNWv3eQx09t18GQk4X3qzMLfFCv0i59RwE1 MdgQ== X-Gm-Message-State: AKaTC02C5SD8OzwbcxBrFWzOZgbzmLXSJa2Z77acKRGd6EiCkDKFY/i7PfXXnJano1IU87EJ7/EctkrZ6OWEMw== X-Received: by 10.129.148.196 with SMTP id l187mr70360691ywg.328.1481257663753; Thu, 08 Dec 2016 20:27:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.230.132 with HTTP; Thu, 8 Dec 2016 20:27:23 -0800 (PST) In-Reply-To: <933676c1-e828-9eb5-405e-13242fee39a7@lsces.co.uk> References: <758680d9-cfe2-4a93-3831-7aa03b4bc9db@nunninger.info> <933676c1-e828-9eb5-405e-13242fee39a7@lsces.co.uk> Date: Thu, 8 Dec 2016 23:27:23 -0500 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: multipart/alternative; boundary=94eb2c07ea18de71d70543322c6d Subject: Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2 From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --94eb2c07ea18de71d70543322c6d Content-Type: text/plain; charset=UTF-8 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 > > -- Guilherme Blanco Senior Technical Architect at Huge Inc. --94eb2c07ea18de71d70543322c6d--