Bug #78421 [NEW]: Extension crash when no link identifier is given

From: Date: Fri, 16 Aug 2019 10:15:50 +0000
Subject: Bug #78421 [NEW]: Extension crash when no link identifier is given
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222268@lists.php.net to get a copy of this message
From: martin dot koeditz at it-syn dot de Operating system: Linux PHP version: 7.1.31 Package: InterBase related Bug Type: Bug Bug description:Extension crash when no link identifier is given Description: ------------ 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('10.1.7.100', 'sysdba', 'masterkey'); $query = ibase_prepare($dbh, "UPDATE TBL_USER SET USER_DISPLAY_NAME = 'Koeditz, Martin' WHERE USER_ID = 125"); try { $transaction = ibase_trans(); ibase_execute($query); ibase_commit($transaction); } catch(Exception $e) { ibase_rollback($transaction); die($e->getMessage()); } 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) -- Edit bug report at https://bugs.php.net/bug.php?id=78421&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78421&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78421&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78421&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78421&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78421&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78421&r=support Expected behavior: https://bugs.php.net/fix.php?id=78421&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78421&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78421&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78421&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78421&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78421&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78421&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78421&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78421&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78421&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78421&r=mysqlcfg

« previous php.bugs (#222268) next »