#24705 [NEW]: Invalid Data return in mysql_fetch_object

From: Date: Fri, 18 Jul 2003 11:08:01 +0000
Subject: #24705 [NEW]: Invalid Data return in mysql_fetch_object
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-44249@lists.php.net to get a copy of this message
From: malko at the-ring dot homelinux dot net Operating system: Windows 2000 PHP version: 4.3.1 PHP Bug Type: MySQL related Bug description: Invalid Data return in mysql_fetch_object 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 bug report at http://bugs.php.net/?id=24705&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24705&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24705&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24705&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24705&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24705&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24705&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24705&r=support Expected behavior: http://bugs.php.net/fix.php?id=24705&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24705&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24705&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24705&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24705&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24705&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24705&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24705&r=gnused

« previous php.bugs (#44249) next »