Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56859 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35060 invoked from network); 10 Dec 2011 12:45:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Dec 2011 12:45:24 -0000 Received: from [127.0.0.1] ([127.0.0.1:2715]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id 91/C0-29221-46453EE4 for ; Sat, 10 Dec 2011 07:45:24 -0500 Authentication-Results: pb1.pair.com header.from=DAbramov@american-appraisal.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=DAbramov@american-appraisal.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain american-appraisal.com from 195.54.192.112 cause and error) X-PHP-List-Original-Sender: DAbramov@american-appraisal.com X-Host-Fingerprint: 195.54.192.112 aar-msk.rinet.ru Received: from [195.54.192.112] ([195.54.192.112:48640] helo=aar-msk.rinet.ru) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/70-29221-A5F43EE4 for ; Sat, 10 Dec 2011 07:23:55 -0500 Received: from [192.168.115.215] (h222.aar-msk.rinet.ru [195.91.161.222]) by aar-msk.rinet.ru (Postfix) with ESMTP id E03EAEC003B for ; Sat, 10 Dec 2011 16:20:42 +0400 (MSK) To: internals@lists.php.net MIME-Version: 1.0 X-KeepSent: 8A61332A:FBCF0483-C3257962:0044C875; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.2FP4 November 18, 2011 Message-ID: Date: Sat, 10 Dec 2011 16:23:41 +0400 X-MIMETrack: Serialize by Notes Client on Dmitry Abramov/AAA(Release 8.5.2FP4|November 18, 2011) at 10.12.2011 16:23:41 Content-Type: multipart/mixed; boundary="=_mixed 0044165644257962_=" Subject: Patch for Bug #48877 "bindValue" and "bindParam" do not work for PDO Firebird From: DAbramov@american-appraisal.com --=_mixed 0044165644257962_= Content-Type: multipart/alternative; boundary="=_alternative 0044165644257962_=" --=_alternative 0044165644257962_= Content-Type: text/plain; charset="US-ASCII" Hi, Here is my patch for the bug 48877 (https://bugs.php.net/bug.php?id=48877) Index: ext/pdo_firebird/firebird_driver.c =================================================================== --- ext/pdo_firebird/firebird_driver.c (revision 320803) +++ ext/pdo_firebird/firebird_driver.c (working copy) @@ -433,6 +433,7 @@ case ':': in_param = 1; ppname = pname; + *ppname++ = sql[l]; case '?': *c++ = '?'; ++pindex; Thanks Best regards, Dmitry Abramov American Appraisal (AAR) Inc. www.american-appraisal.ru --=_alternative 0044165644257962_= Content-Type: text/html; charset="US-ASCII" Hi,

Here is my patch for the bug 48877 (https://bugs.php.net/bug.php?id=48877)

Index: ext/pdo_firebird/firebird_driver.c
===================================================================
--- ext/pdo_firebird/firebird_driver.c        (revision 320803)
+++ ext/pdo_firebird/firebird_driver.c        (working copy)
@@ -433,6 +433,7 @@
                                         case ':':
                                                 in_param = 1;
                                                 ppname = pname;
+                                                *ppname++ = sql[l];
                                         case '?':
                                                 *c++ = '?';
                                                 ++pindex;



Thanks

Best regards,
Dmitry Abramov
American Appraisal (AAR) Inc.
www.american-appraisal.ru --=_alternative 0044165644257962_=-- --=_mixed 0044165644257962_=--