From 189858d917f380c6e71cb9b3640d1eaeeb85d979 Mon Sep 17 00:00:00 2001 From: Torsten Zuehlsdorff Date: Wed, 4 Jan 2017 14:07:10 +0000 Subject: databases/php70-interbase: Allow creation of multiple connections to Interbase Currently the first connection to the database is closed when a second one is opened. This bug was already reported to upstream: https://bugs.php.net/bug.php?id=72175 Reported by: Marc Muncke Reviewed by: Marc Muncke MFH: 2017Q1 --- databases/php70-interbase/files/patch-interbase.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 databases/php70-interbase/files/patch-interbase.c (limited to 'databases/php70-interbase/files/patch-interbase.c') diff --git a/databases/php70-interbase/files/patch-interbase.c b/databases/php70-interbase/files/patch-interbase.c new file mode 100644 index 000000000000..0f8791beb793 --- /dev/null +++ b/databases/php70-interbase/files/patch-interbase.c @@ -0,0 +1,11 @@ +--- interbase.c.orig 2016-12-16 10:59:02 UTC ++++ interbase.c +@@ -940,7 +940,7 @@ static void _php_ibase_connect(INTERNAL_ + xlink = (zend_resource*) le->ptr; + if ((!persistent && xlink->type == le_link) || xlink->type == le_plink) { + if (IBG(default_link)) { +- zend_list_close(IBG(default_link)); ++ zend_list_delete(IBG(default_link)); + } + xlink->gc.refcount++; + xlink->gc.refcount++; -- cgit v1.2.3