Multiple connections to Interbase with php >= 7.0 are not allowed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php7.0 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
# lsb_release -rd
Description: Ubuntu 16.04 LTS
Release: 16.04
-------------------
# apt-cache policy php7.0-interbase
php7.0-interbase:
Instalados: 7.0.4-7ubuntu2
Candidato: 7.0.4-7ubuntu2
Tabla de versión:
*** 7.0.4-7ubuntu2 500
500 http://
100 /var/lib/
-------------------
It seems PHP 7 changed a bit the way to work with the Interbase module.
Same code on PHP 5.6 works flawlessly.
If you have one open link to an Interbase/Firebird database and you open **another** one to the same database the first link it's closed.
One example of code can be:
$conx = ibase_pconnect(
$conx2 = ibase_pconnect(
$sql = 'SELECT something from somewhere';
$query = ibase_query($conx, $sql);
while ($row = ibase_fetch_
echo $row['something'];
}
DB_xxx are defined variables with the users, password, ..... of the database.
The result it's the same if instead of **ibase_pconnect** we write **ibase_connect**
If you run that code you won't get nothing and on the apache log you will see something like:
supplied resource is not a valid Firebird/InterBase link resource in ....
ibase_
If we remove the line with the $conx2 all will work perfectly.
On my php.ini I have this (exactly the same than on PHP 5.6):
ibase.
; Maximum number of persistent links. -1 means no limit.
ibase.
; Maximum number of links (persistent + non-persistent). -1 means no limit.
ibase.max_links = -1
Interbase module for php7 has a new option which it's generating this problem ?
description: | updated |
summary: |
- Multiple connections to Interbase with php 7.0 are not allowed + Multiple connections to Interbase with php >= 7.0 are not allowed |
Changed in php7.0 (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
Reported upstream as: https:/ /bugs.php. net/bug. php?id= 72175