Home » Database » MDB2 » Bug #7883
Duplicate declaration of $postions array in MDB2::prepare()
Details
| Submitted | 2006-06-13 08:04 UTC |
|---|---|
| From | LiveFreeAndRoam at gmail dot com |
| Assigned | lsmith |
| Status | Closed |
| Package | MDB2 |
| PHP Version | 4.4.2 |
| OS | WXP Pro |
| Roadmaps | (Not assigned) |
Comments
[2006-06-13 08:04 UTC] LiveFreeAndRoam at gmail dot com
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.