diff options
author | Torsten Zuehlsdorff <tz@FreeBSD.org> | 2017-01-04 14:07:10 +0000 |
---|---|---|
committer | Torsten Zuehlsdorff <tz@FreeBSD.org> | 2017-01-04 14:07:10 +0000 |
commit | 189858d917f380c6e71cb9b3640d1eaeeb85d979 (patch) | |
tree | fb5a3b59d6e0b203b21e35643194171dc81b0802 /databases/php70-interbase/files/patch-interbase.c | |
parent | Update to upstream version 1.5.0 (diff) |
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 <m.muncke@computer1020.at>
Reviewed by: Marc Muncke <m.muncke@computer1020.at>
MFH: 2017Q1
Notes
Notes:
svn path=/head/; revision=430557
Diffstat (limited to 'databases/php70-interbase/files/patch-interbase.c')
-rw-r--r-- | databases/php70-interbase/files/patch-interbase.c | 11 |
1 files changed, 11 insertions, 0 deletions
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++; |