#25126 [NEW]: DB::getAssoc() does not use default fetch mode

From: Date: Mon, 18 Aug 2003 10:42:54 +0000
Subject: #25126 [NEW]: DB::getAssoc() does not use default fetch mode
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-19962@lists.php.net to get a copy of this message
From: sjaensch at gmx dot net Operating system: Linux PHP version: 4.3.2 PHP Bug Type: PEAR related Bug description: DB::getAssoc() does not use default fetch mode Description: ------------ DB::getAssoc() always returns results in DB_FETCHMODE_ORDERED, regardless of the mode set with DB:setFetchMode(). I manually have to call getAssoc($query, FALSE, array(), DB_FETCHMODE_ASSOC) to get column names as indexes. This is not consistent and not documented. Contrary to the documentation in http://pear.php.net/manual/en/package.database.db.db-common.getassoc.php, the default value for fetchmode is DB_FETCHMODE_ORDERED, as verified in DB/common.php shipped with PHP 4.3.2 (DB 1.1.3) and DB/common.php from DB 1.4.0. -- Edit bug report at http://bugs.php.net/?id=25126&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25126&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25126&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25126&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25126&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25126&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25126&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25126&r=support Expected behavior: http://bugs.php.net/fix.php?id=25126&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25126&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25126&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25126&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25126&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25126&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25126&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25126&r=gnused

« previous php.pear.dev (#19962) next »