php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1440 Behaviour change: mysql_fetch_field after mysql_fetch_row fails
Submitted: 1999-05-23 20:18 UTC Modified: 1999-06-18 11:53 UTC
From: isplist at pinnacle dot net dot au Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0.8 OS: Linux 2.036
Private report: No CVE-ID: None
 [1999-05-23 20:18 UTC] isplist at pinnacle dot net dot au
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 11:53 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 05:01:30 2024 UTC