PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB2 » Bug #3453

Error in autoExecute()

Details

Submitted2005-02-13 04:45 UTC
Fromakorthaus at web dot de
Assignedlsmith
StatusClosed
PackageMDB2
PHP Version5.0.3
OSLinux 2.4.28 (Gentoo)
Roadmaps(Not assigned)

Comments

[2005-02-13 04:45 UTC] akorthaus at web dot de

Description:
------------
After calling autoExecute() I get a fatal error:

"you have called member-function of a non-existing object: bindParamArray()".

The problem is in the following line of Extended.php ( http://cvs.php.net/co.php/pear/MDB2/MDB2/Extended.php?r=1.17#137 ):

$prepare_query->bindParamArray($params);

The $prepare_query is not defined anywhere. Because of bindParamArray() being a methode from Class MDB2_Statement_Common, I tried to use $stmt, which is a MDB2_Statement, so I changed the following lines:

# $params = array_values($fields_values);
# $prepare_query->bindParamArray($params);
$stmt->bindParamArray(array_values($fields_values));

Now it seems to work for me.

I'm using MySQL and a CVS-snapshot of MDB2 from some hours ago.

[2005-02-14 13:26 UTC] smith at backendmedia dot com

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.