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 #3720

make the signature of autoExecute() PEAR::DB compatible

Details

Request #3720make the signature of autoExecute() PEAR::DB compatible
Submitted2005-03-06 08:32 UTC
Fromakorthaus at web dot de
StatusClosed
PackageMDB2
PHP Version5.0.3
OSLinux 2.4.28 (Gentoo)
Roadmaps(Not assigned)

Comments

[2005-03-06 08:32 UTC] akorthaus at web dot de

Description:
------------
The Signature of autoExecute() was changed from PEAR::DB.

From PEAR::DB:

function autoExecute($table, $fields_values, $mode = DB_AUTOQUERY_INSERT, $where = false)

And PEAR::MDB2:

function &autoExecute($table, $fields_values, $types = null, $result_types = null, $mode = MDB2_AUTOQUERY_INSERT, $where = false, $result_class = true)

If this would be something like:

function &autoExecute($table, $fields_values, $mode = MDB2_AUTOQUERY_INSERT, $where = false, $types = null, $result_types = null, $result_class = true)

this API would be compatible to existing PEAR::DB code. Also if you do do not want to use these new parameters you do not need to write ",NULL,NULL," between your parameter-list.

[2005-03-06 15:55 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.