# Patch for Bug #48877 "bindValue" and "bindParam" do not work for PDO Firebird

- Thread: https://externals.io/message/56859
- Original archive: https://news-web.php.net/php.internals/56859
- Started by DAbramov@american-appraisal.com on 2011-12-10T12:23:41+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #56859 — DAbramov@american-appraisal.com — 2011-12-10T12:23:41+00:00

URL: https://externals.io/message/56859#56859

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

---

## #56860 — marius adrian popa — 2011-12-10T15:24:54+00:00

URL: https://externals.io/message/56859#56860 · In reply to: #56859

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

I will check and apply it
