PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » MDB2 » Bug #7883

Duplicate declaration of $postions array in MDB2::prepare()

Details

Submitted2006-06-13 08:04 UTC
FromLiveFreeAndRoam at gmail dot com
Assignedlsmith
StatusClosed
PackageMDB2
PHP Version4.4.2
OSWXP 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.