Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96679 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36793 invoked from network); 31 Oct 2016 17:56:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2016 17:56:20 -0000 Authentication-Results: pb1.pair.com header.from=adam.baratz@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam.baratz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.178 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.161.178 mail-yw0-f178.google.com Received: from [209.85.161.178] ([209.85.161.178:33879] helo=mail-yw0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/21-25911-3C587185 for ; Mon, 31 Oct 2016 12:56:20 -0500 Received: by mail-yw0-f178.google.com with SMTP id t125so8934787ywc.1 for ; Mon, 31 Oct 2016 10:56:19 -0700 (PDT) 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=zq/yjX1jLRXflHIRhS5/nht256BGLeyX/VDopo2SxHM=; b=K6zZtCrje0zZzDmYZCIV4x1Q+8JRaJspunbP7C/B19c/BRwavvPBZCiGcrii7aEPWw MjpfU/nGMxPr91LbbgH9GZrLdvCab0qUcxoWLqxhNPiesgeLUsfO+10lDlwXteFdJjwd pxKIw4sCfMZ4bYyjC9261AOHRbSvqLon07aL3E5g7GSdKgsT8oK20hXO/AjvKRcuBfg7 ukmaZr+DL9Ccnz4nzXMmf9JNkcy9ahdnfaQW8QM+SnPO8USPYL3eLKZR1zatD+hIcbwG vPc5M+OZsQcZhDh6/MTDcBzT++J/74FvR0VFY9uxC/5c+M4LxnasmXt30mBpMACLFP3E DAtA== 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=zq/yjX1jLRXflHIRhS5/nht256BGLeyX/VDopo2SxHM=; b=eBVWNZfwM4QDvs8I7zLkQ4b//15/nX3fSg/C6VEDnBPLPjcIjR/aCrRtpdEuJP/9Ar 7ncGrCfdfJ/OiF9kekSfR0W/WyVUUdLbd4mwZjtn8Fr8r9Vm0fcBmRHkDmdCrs9yz4BR MmTyJCb77YXWBTUGrzhvrDzeOHm4bqOcgETXOza6R3Oj2ycwip6KG9rQf9YQUf/togws kbjIuBmQGJUwyUpPJtIRH5ACg7ItJuGtzfEVtLElDDE7d2mWr7s7nROzjaQk8QFKM+c9 USCfChrc4B/z8ov5kRsSsk0Rin6pK/byPD5URYJ7mEdPllxHuZaw4tVDTccdoDtHmxn0 CCuw== X-Gm-Message-State: ABUngvdrDA9j6vqPpsi8PGvROO9L0O9Q/RjwnWqw+04gyK9N3/CQ+VQKX+EgmF+QnVODLSZfC8Tu9q2TgXBmcA== X-Received: by 10.107.176.204 with SMTP id z195mr20136279ioe.133.1477936577046; Mon, 31 Oct 2016 10:56:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.158.164 with HTTP; Mon, 31 Oct 2016 10:56:16 -0700 (PDT) In-Reply-To: <3070b2cb-58ab-cf55-7744-4afb00ce331a@beccati.com> References: <3070b2cb-58ab-cf55-7744-4afb00ce331a@beccati.com> Date: Mon, 31 Oct 2016 13:56:16 -0400 Message-ID: To: Matteo Beccati Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114537ecacf58a05402cec17 Subject: Re: [PHP-DEV] [RFC] Debugging PDO Prepared Statement Emulation From: adam.baratz@gmail.com (Adam Baratz) --001a114537ecacf58a05402cec17 Content-Type: text/plain; charset=UTF-8 > > There's value in improving tests for emulated prepares, but as I stated > somewhere else, I would rather see them deprecated and removed rather > than encouraged. > I left a note about this in the "Future Scope" section[1]. If we deprecate emulated prepares, it would make sense to deprecate PDOStatement::activeQueryString() at the same time, since their utility is intertwined. But as long as pdo_dblib is supported, the possibility of deprecating emulated prepares shouldn't get in the way of being able to support it. I thought about having PDOStatement::activeQueryString() trigger an error and/or return false if emulated prepares aren't enabled. This would make the usage clearer, but I thought it would be best to limit the side effects of a debug tool. Besides, I gather that FreeTDS also supports them since quite a long > time, so I don't see why pdo_dblib should exclusively use and promote > usage of emulated prepares. > FreeTDS supports them, but not through the DB-Library API. The other APIs[2] implemented by FreeTDS support prepared statements. --- [1] https://wiki.php.net/rfc/debugging_pdo_prepared_ statement_emulation#future_scope [2] http://www.freetds.org/which_api.html --001a114537ecacf58a05402cec17--