php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24705 Invalid Data return in mysql_fetch_object
Submitted: 2003-07-18 06:08 UTC Modified: 2003-07-23 22:29 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: malko at the-ring dot homelinux dot net Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 4.3.1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
30 - 24 = ?
Subscribe to this entry?

 
 [2003-07-18 06:08 UTC] malko at the-ring dot homelinux dot net
Description:
------------
Config: php4.3.1 & php4.2.3
  mysql 4.0.12

Problem: When using mysql_fetch_object for retrieve the result of mysql_query("Desc table"); the Fields 'type' isn't correct (it work well with mysql_fetch_array or mysql_fetch_object($resid,3))

Reproduce code:
---------------
$resid = mysql_query('Desc table');
while($data = mysql_fetch_object($resid)){
  $result[] = $data;
}
print_r($result);

Expected result:
----------------
expects the result is right just this :p

Actual result:
--------------
error in field type value is wrong

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-18 06:27 UTC] sniper@php.net
What do you get then? (works fine for me..)

 [2003-07-18 06:28 UTC] sniper@php.net
And update to PHP 4.3.2 first..

 [2003-07-23 22:29 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 06:03:33 2021 UTC