php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9140 mysql_fetch_array($query, MYSQL_ASSOC) returns assoc AND num indexes
Submitted: 2001-02-07 00:02 UTC Modified: 2001-02-07 00:19 UTC
From: kbertone at bigfoot dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.4 OS: Unix and Windows
Private report: No CVE-ID: None
 [2001-02-07 00:02 UTC] kbertone at bigfoot dot 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-07 00:04 UTC] 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:08 UTC] kbertone at bigfoot dot com
Thanks for quick response.  No, can't upgrade (running on web hosting service).  
 [2001-02-07 00:10 UTC] cynic@php.net
well then, what about mysql_fetch_assoc()?
 [2001-02-07 00:19 UTC] kbertone at bigfoot dot com
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 06:01:30 2024 UTC