Bug #72175 [Com]: Impossibility of creating multiple connections to Interbase with php 7.x

From: Date: Fri, 21 Dec 2018 08:31:43 +0000
Subject: Bug #72175 [Com]: Impossibility of creating multiple connections to Interbase with php 7.x
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218544@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72175&edit=1 ID: 72175 Comment by: netvicious at gmail dot com Reported by: netvicious at gmail dot com Summary: Impossibility of creating multiple connections to Interbase with php 7.x Status: Open Type: Bug Package: InterBase related Operating System: Ubuntu 16.04 LTS PHP Version: 7.x Block user comment: N Private report: N New Comment: Thanks for the info Christoph. The module works perfectly, almost for me. This it's the only bug I found which made me change some code to workaround it. Firebird/Interbase DBMS it's live yet, Firebird will release version 4 in some time, and Interbase it's maintained by Embarcadero. So it will be a pity if PHP doesn't has a native driver for it. As you said the module it's currently not maintained by a PHP developer and that's why this bug it's unfixed yet. It's there anyway we can help. I read something about there it's not an environment test to check if the code works ... Previous Comments: ------------------------------------------------------------------------ [2018-12-20 13:57:48] cmb@php.net > If it's really one OR the RETVAL should exit the function like one > return statement (I don't know if it does a return). Indeed, the RETVAL_RES(xlink) should likely be RETURN_RES(xlink). > Interbase module seems to be abandoned. Unfortunately, yes. > I think the module was ported to PHP 7.0 by someon which doesn't > know the previous module […] It has been proposed to remove the unmainted ext/interbase for PHP 7[1], but somebody claimed to be willing to maintain it. Unfortunately, that didn't really happen, but instead of removing the extension belatedly, we'd tried to fix it[2] … [1] <https://wiki.php.net/rfc/removal_of_dead_sapis_and_exts#extinterbase> [2] <https://externals.io/message/89858> ------------------------------------------------------------------------ [2018-12-20 08:44:12] netvicious at gmail dot com Summary and PHP Version modified. ------------------------------------------------------------------------ [2018-11-26 17:49:42] netvicious at gmail dot com Interbase module seems to be abandoned. All the developers which appear on phpinfo() related with the Interbase/firebird module are not active developers of php looking at their Linkedin accounts. So obviously this bug won't be fixed because there it's no active developer in charge of the interbase/firebird module. I think the module was ported to PHP 7.0 by someon which doesn't know the previous module and that's why it has bugs like this one. ------------------------------------------------------------------------ [2018-06-20 19:58:44] lester at lsces dot co dot uk "It seems $conx has been closed when creating the $conx2 connection." But if you check the manual on ibase_connect, using the same connection details results in the existing connection just being copied. So there should be no attempt to create a new connection. I think the older code was trying to pick up when the same link was being used, while the amended code seems to miss that act? Currently waiting on a clone of the php-src updating from Feb17 to current. Only another 17500 commits to go, the I can track the implemented changes. ------------------------------------------------------------------------ [2018-05-08 06:50:20] NetVicious at gmail dot com #14039 it's related to the garbage collector. This bug it's related with the Interbase engine which received some change on the 7.0 branch, and doesn't allows to create two different connections to the same database at the same time. To start working with 7.X branch you can use my workaround using a static variable for the database connection (check my message of 2017-11-10 11:50 UTC on this page). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=72175 -- Edit this bug report at https://bugs.php.net/bug.php?id=72175&edit=1

« previous php.bugs (#218544) next »