Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.0b5

Bug #19262 Fetchmode constants WERE bitwise
Submitted: 2012-01-31 04:30 UTC
From: gauthierm Assigned: gauthierm
Status: Closed Package: MDB2 (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: 2.5.0b4    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 44 + 10 = ?

 
 [2012-01-31 04:30 UTC] gauthierm (Michael Gauthier)
Description: ------------ Fetchmode constants were made non-bitwise in http://svn.php.net/viewvc/pear/packages/MDB2/trunk/MDB2/Driver/pgsql.php? revision=321197&view=markup This breaks FETCH_MODE_OBJECT. Previously, (FETCH_MODE_OBJECT & FETCH_MODE_ASSOC) == FETCH_MODE_ASSOC was used to set up the column names on object result. This was not obvious from looking at the code. A better way to fix it would be to add a logical OR to the conditional so FETCH_MODE_OBJECT is included.

Comments

 [2012-01-31 05:57 UTC] gauthierm (Michael Gauthier)
-Status: Open +Status: Closed -Assigned To: +Assigned To: gauthierm
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. http://svn.php.net/viewvc?view=revision&revision=322953