#22328 [NEW]: Erroneous behaviour of fetchRow method

From: Date: Thu, 20 Feb 2003 11:23:10 +0000
Subject: #22328 [NEW]: Erroneous behaviour of fetchRow method
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-13493@lists.php.net to get a copy of this message
From: miki_fossati at libero dot it Operating system: linux suse 7.2 PHP version: 4.3.0 PHP Bug Type: PEAR related Bug description: Erroneous behaviour of fetchRow method In the following code: --- starts here --- require_once 'DB.php'; $connString = "mysql://user:pass@localhost/my_db"; $mysqlDb = DB::connect("$connString", true); $result = $mysqlDb->query("SELECT id FROM table WHERE name='foo' LIMIT 0, 3"); if (!DB::isError($result)) { while ($row = $result->fetchRow(DB_FETCHMODE_ASSOC)) { extract($row); echo "$id <br />"; $result2=$mysqlDb->query("FAKE QUERY"); if(!DB::isError($result2)) { //Never here } else { //Continue loop } } } --- ends here --- the loop continues forever. -- Edit bug report at http://bugs.php.net/?id=22328&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22328&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22328&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22328&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22328&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22328&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22328&r=support Expected behavior: http://bugs.php.net/fix.php?id=22328&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22328&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22328&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22328&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22328&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22328&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22328&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22328&r=gnused

« previous php.pear.dev (#13493) next »