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 » DB » Bug #1234

Error in mysqli's escapeSimple

Details

Submitted2004-04-17 19:09 UTC
Fromabielr at myrealbox dot com
Assigneddanielc
StatusClosed
PackageDB
PHP Version5.0.0b4 (beta4)
OSWindows XP
Roadmaps(Not assigned)

Comments

[2004-04-17 19:09 UTC] abielr at myrealbox dot com

Description:
------------
In DB 1.6.2 the mysqli escapeSimple() function has an error in its call to mysqli_real_escape_string().

The current code in DB/mysqli.php reads:
@mysqli_real_escape_string($str, $this->connection);

This should be changed to:
@mysqli_real_escape_string($this->connection, $str);

This issue resolves the problem of being unable to use strings in prepared statements where a placeholder is being replaced by the string in the execute() call.