Bug #1440: Behaviour change: mysql_fetch_field after mysql_fetch_row fails

From: Date: Mon, 24 May 1999 00:18:17 +0000
Subject: Bug #1440: Behaviour change: mysql_fetch_field after mysql_fetch_row fails
Groups: php.dev 
Request: Send a blank email to php-dev+get-5914@lists.php.net to get a copy of this message
From: isplist@pinnacle.net.au Operating system: Linux 2.036 PHP version: 3.0.8 PHP Bug Type: MySQL related Bug description: Behaviour change: mysql_fetch_field after mysql_fetch_row fails Script that worked fine in 3.0.6 had me panicking this morning! Upgraded to 3.0.8 compiled using egcs (seems a lot faster), Apache 1.3.6 Example: $row=mysql_fetch_row($result); while ($field=mysql_fetch_field($result)) { print $field->name; #do stuff } This gives no output (Doesn't go into the while loop) where it did before. ommiting the first line everything works fine (unless you need to use $row..) I'm not certain if this is a bug or correct behaviour. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5914) next »