Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54072 invoked from network); 20 Jul 2010 21:02:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2010 21:02:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:62965] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/C0-49222-4EE064C4 for ; Tue, 20 Jul 2010 17:02:29 -0400 Received: by fxm17 with SMTP id 17so3802385fxm.29 for ; Tue, 20 Jul 2010 14:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=w1wVwRRkPNM4WJ3qteWbTOIAqwZQt3C7/ZS0SQmDHBc=; b=YRai8WhFfkKGXgrbRPGHQGnR0bejvOYSg+bBJpQZUvEbvSw7DZy2oDMU2MNa/L5lxG SP8LlMVoNnozZOm43Nyb/UIOwhllAavUpdlskfKQjsWjAEJhn+PYzV4Cj4HnCCFfFJ3s rpLYkL1J3LbnVTMAW1H926x7IaixiOw/1LtX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=k+fzf6dbv6jfDNpPg0S7i0pKg0CCrI0kp6+0SRD+WeBqd+pvsCacWv+PE+n5f+WAo6 QuV+rf2psVcYXf0VFKJjAypDnaiPnGk4Ex7uddUGhfkduGN+qBgCuTSxJeCnzH2O6IFn KnTNgbjWpQBhDjpEuMpwEpDbvesUHKwhU2Icc= MIME-Version: 1.0 Received: by 10.223.122.13 with SMTP id j13mr3650309far.23.1279659745727; Tue, 20 Jul 2010 14:02:25 -0700 (PDT) Received: by 10.223.125.70 with HTTP; Tue, 20 Jul 2010 14:02:25 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Jul 2010 23:02:25 +0200 Message-ID: To: "Jonah H. Harris" Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH]: Fix for PDOStatement::debugDumpParams() From: pierre.php@gmail.com (Pierre Joye) hi, Can you open a bug and attach the patch to it please? Thanks for your work, On Tue, Jul 20, 2010 at 10:30 PM, Jonah H. Harris wrote: > Per the documentation > (http://php.net/manual/en/pdostatement.debugdumpparams.php), > PDOStatement::debugDumpParams should be emitting the bind parameter value= . > Currently however, it does not.=A0 Accordingly, attached is a patch for 5= .2 > (which also applies cleanly to 5.3), which emits the bind parameter value= . > > While there are quite a few different ways to print and/or get a printabl= e > version of the zval without having to convert the parameter to a string > in-place, I felt that zend_make_printable_zval was the most appropriate. > Feel free to correct me though ;-) > > Also, the first example in the documentation is incorrect, as bindValue c= an > take at most three arguments. > > In the example: > > $sth->bindValue(':colour', $colour, PDO::PARAM_STR, 12); > > should be: > > $sth->bindValue(':colour', $colour, PDO::PARAM_STR); > > > -- > Jonah H. Harris, VP of Database Administration > myYearbook.com > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org