From: al at forest dot akadem dot ru Operating system: Windows 2000 PHP version: 4.3.3 PHP Bug Type: Reproducible crash Bug description: Crahes when starting a transaction given invalid link handle
Description: ------------ Web-server crashes when I'm starting a transaction with invalid link handle (Any value not of type 'resource interbase link'). Crash happens only if link handle is _explicitly_ specified as an argument of ibase_trans(). OS: Windows 2000 (SP4) Web-server: Apache 1.3.28 PHP as a module: 4.3.3 (wihout any changes in php.ini regarding php_interbase extension) php_interbase: Revision 1.91.2.22 (i.e. latest available from CVS in PHP_4_3 branch) Firebird 1.0.3 Reproduce code: --------------- // Here are two variants of a two-line script: $G2db = ibase_connect( 'localhost:c:\\g2-gdb\\g2.gdb', 'USERNAME', 'INVALID_PASSWORD', 'WIN1251', 0, 3); $G2tr = ibase_trans(IBASE_READ, $G2db); // or: $G2db = 123; $G2tr = ibase_trans(IBASE_READ, $G2db); Expected result: ---------------- Should issue run-time error complianing about wrong argument types. -- Edit bug report at http://bugs.php.net/?id=26201&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26201&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26201&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26201&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26201&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26201&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26201&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26201&r=support Expected behavior: http://bugs.php.net/fix.php?id=26201&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26201&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26201&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26201&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26201&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26201&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26201&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26201&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26201&r=float