#22328 [Opn->Asn]: Erroneous behaviour of fetchRow method
| From: | arnaud@php.net | Date: | Mon, 28 Apr 2003 08:58:57 +0000 |
| Subject: | #22328 [Opn->Asn]: Erroneous behaviour of fetchRow method | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-15661@lists.php.net to get a copy of this message | ||
ID: 22328
Updated by: arnaud@php.net
Reported By: miki_fossati at libero dot it
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: linux suse 7.2
PHP Version: 4.3.0
Assigned To: lsmith
New Comment:
changing status
Previous Comments:
------------------------------------------------------------------------
[2003-02-20 05:23:10] miki_fossati at libero dot it
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 this bug report at http://bugs.php.net/?id=22328&edit=1