From: Operating system: Linux PHP version: 5.3.9 Package: InterBase related Bug Type: Bug Bug description:ibase_trans() gives segfault when passing params
Description: ------------ The ibase_trans() function segfaults when you pass connection-id and/or mode to the function. After comparing both 5.2.x version of interbase.c and 5.3.x version, I found the solution: # diff interbase.c interbase-fix.c 1128c1128,1129 < unsigned short i, argn, link_cnt = 0, tpb_len = 0; --- > unsigned short i, link_cnt = 0, tpb_len = 0; > int argn; The &argn passed to zend_parse_parameters shall be a pointer to an integer, not to an unsigned short. Test script: --------------- $DB = ibase_pconnect($DB_name, $DB_user, $DB_pw ); $TR = ibase_trans($DB); is enough to trigger the error. -- Edit bug report at https://bugs.php.net/bug.php?id=60802&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60802&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60802&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60802&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60802&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60802&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60802&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60802&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60802&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60802&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60802&r=support Expected behavior: https://bugs.php.net/fix.php?id=60802&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60802&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60802&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60802&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60802&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60802&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60802&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60802&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60802&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60802&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60802&r=mysqlcfg