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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: isplist at pinnacle dot net dot au
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-18 11:53 UTC] sas at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jun 03 09:01:26 2025 UTC