|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78421 Extension crash when no link identifier is given
Submitted: 2019-08-16 10:15 UTC Modified: 2021-03-31 11:41 UTC
From: martin dot koeditz at it-syn dot de Assigned:
Status: Suspended Package: InterBase related
PHP Version: 7.1.31 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: martin dot koeditz at it-syn dot de
New email:
PHP Version: OS:


 [2019-08-16 10:15 UTC] martin dot koeditz at it-syn dot de
Documentation says:
If called without an argument, this function commits the default transaction of the default link.

If you use the function without default link, the script crashes.

Test script:
$dbh = ibase_connect('', 'sysdba', 'masterkey');

$query = ibase_prepare($dbh, "UPDATE TBL_USER SET USER_DISPLAY_NAME = 'Koeditz, Martin' WHERE USER_ID = 125");

try {
    $transaction = ibase_trans();
catch(Exception $e) {

echo "Everything is fine!";

Expected result:
If you have to enter a link, the documentation has to be editted.

The program should never crash if the argument is missed.

Actual result:
The script crashes.
Log output from Apache log:
[Fri Aug 16 11:41:08.021422 2019] [core:notice] [pid 17149] AH00052: child pid 21126 exit signal Segmentation fault (11)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-16 10:50 UTC]
> If you have to enter a link, the documentation has to be
> editted.

It's not a documentation issue; rather the implementation would
have to be changed, but that would constitute a BC break.

Anyhow, this issue has basically been mentioned in the removal RFC:
 [2021-03-31 11:41 UTC]
-Status: Open +Status: Suspended
 [2021-03-31 11:41 UTC]
The interbase extension is moved to PECL[1] as of PHP 7.4.0, and
is looking for a new maintainer.  Until a new maintainer is found,
I suspend this ticket.

Consider to use the bundled PDO_Firebird extension, or the
php-firebird package[2] instead.

[1] <>
[2] <>
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed May 25 14:04:06 2022 UTC