#24705 [Fbk]: Invalid Data return in mysql_fetch_object
| From: | sniper@php.net | Date: | Fri, 18 Jul 2003 11:28:16 +0000 |
| Subject: | #24705 [Fbk]: Invalid Data return in mysql_fetch_object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44251@lists.php.net to get a copy of this message | ||
ID: 24705
Updated by: sniper@php.net
Reported By: malko at the-ring dot homelinux dot net
Status: Feedback
Bug Type: MySQL related
Operating System: Windows 2000
PHP Version: 4.3.1
New Comment:
And update to PHP 4.3.2 first..
Previous Comments:
------------------------------------------------------------------------
[2003-07-18 06:27:25] sniper@php.net
What do you get then? (works fine for me..)
------------------------------------------------------------------------
[2003-07-18 06:08:01] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24705&edit=1