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

Bug #7883 Duplicate declaration of $postions array in MDB2::prepare()
Submitted: 2006-06-13 08:04 UTC
From: LiveFreeAndRoam at gmail dot com Assigned: lsmith
Status: Closed Package: MDB2 (version 2.0.3)
PHP Version: 4.4.2 OS: WXP Pro
Roadmaps: (Not assigned)    
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 : 40 - 10 = ?

 
 [2006-06-13 08:04 UTC] LiveFreeAndRoam at gmail dot com (Matt)
Description: ------------ In the function declaration, notice the duplicate declarations, highlighted below. Not serious, but helping to keep the code tidy. function &prepare($query, $types = null, $result_types = null, $lobs = array()) { $is_manip = ($result_types === MDB2_PREPARE_MANIP); $offset = $this->offset; $limit = $this->limit; $this->offset = $this->limit = 0; $this->debug($query, 'prepare', $is_manip); >>>> $positions = array(); $placeholder_type_guess = $placeholder_type = null; $question = '?'; $colon = ':'; >>>> $positions = array(); $position = 0; Test script: --------------- Not applicable. Expected result: ---------------- Not applicable. Actual result: -------------- Not applicable.

Comments

 [2006-06-13 08:08 UTC] lsmith (Lukas Smith)
This bug has been fixed in CVS. 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.