#43244 [NEW]: firebird: closeCursor w/o returned data kills process

From: Date: Sun, 11 Nov 2007 12:54:31 +0000
Subject: #43244 [NEW]: firebird: closeCursor w/o returned data kills process
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-119437@lists.php.net to get a copy of this message
From: hp-php dot net at oeri dot ch Operating system: Linux 2.6 PHP version: 5.3CVS-2007-11-11 (CVS) PHP Bug Type: PDO related Bug description: firebird: closeCursor w/o returned data kills process Description: ------------ In pdo_firebird from CVS, calling PDOStatement->closeCursor on an executed statement that did *NOT* return any data kills the process. Reproduce code: --------------- <?php $pdo = new PDO( 'firebird:dbname=localhost:devel', 'devel', 'devel' ); // VARIANT A: SECONDARY DATA $stmt = $pdo->prepare( 'UPDATE "a_data" SET "data"=200 RETURNING "a"' ); $stmt->execute(); // the following statement works fine $stmt->closeCursor(); echo "I survived variant 'A'\n"; // VARIANT B: REALLY NO DATA $stmt = $pdo->prepare( 'UPDATE "a_data" SET "data"=200' ); $stmt->execute(); // the following statement kills the process $stmt->closeCursor(); echo "I don't survive upto here...\n"; ?> Expected result: ---------------- I survived variant 'A' I don't survive upto here... (Both statements executed an closeCursor called twice) Actual result: -------------- I survived variant 'A' (Variant 'B' - the non-data statement - kills the process before echo.) -- Edit bug report at http://bugs.php.net/?id=43244&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43244&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43244&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43244&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43244&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43244&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43244&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43244&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43244&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43244&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43244&r=support Expected behavior: http://bugs.php.net/fix.php?id=43244&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43244&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43244&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43244&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43244&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43244&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43244&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43244&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43244&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43244&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43244&r=mysqlcfg

« previous php.bugs (#119437) next »