PHP 4.0 Bug #9140 Updated: mysql_fetch_array($query, MYSQL_ASSOC) returns assoc AND num indexes

From: Date: Wed, 07 Feb 2001 05:19:04 +0000
Subject: PHP 4.0 Bug #9140 Updated: mysql_fetch_array($query, MYSQL_ASSOC) returns assoc AND num indexes
Groups: php.dev 
Request: Send a blank email to php-dev+get-45930@lists.php.net to get a copy of this message
ID: 9140 User Update by: kbertone@bigfoot.com Old-Status: Feedback Status: Closed Bug Type: MySQL related Description: mysql_fetch_array($query, MYSQL_ASSOC) returns assoc AND num indexes OK. Thanks. Got mysql_fetch_assoc() to work. Now not sure that mysql_fetch_array($query, MYSQL_ASSOC) is really broken. So I will try to close this ticket. Previous Comments: --------------------------------------------------------------------------- [2001-02-07 00:10:07] cynic@php.net well then, what about mysql_fetch_assoc()? --------------------------------------------------------------------------- [2001-02-07 00:08:01] kbertone@bigfoot.com Thanks for quick response. No, can't upgrade (running on web hosting service). --------------------------------------------------------------------------- [2001-02-07 00:04:40] cynic@php.net cannot reproduce it with yesterday CVS snapshot. can you upgrade? try 4.0.4 pl1 or http://snaps.php.net/ --------------------------------------------------------------------------- [2001-02-07 00:02:06] kbertone@bigfoot.com mysql_fetch_array($query, MYSQL_ASSOC) seems to return BOTH the numerical AND the associative indexes (should only return associative). Have tried mysql_fetch_assoc($query) and I get the same problem. Running PHP 4.0.4 on both Unix and Windows and problem appears on both. Am I crazy? --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9140

« previous php.dev (#45930) next »