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

oci8.php line 577 str_replace wrong parameter

Details

Submitted2005-06-02 14:41 UTC
Fromtorsten dot kerwien at gmx dot net
Assigneddanielc
StatusBogus
PackageDB
PHP Version4.3.10
OSlinux
Roadmaps(Not assigned)

Comments

[2005-06-02 14:41 UTC] torsten dot kerwien at gmx dot net

Description:
------------
The ' escape doesen't work.

Reproduce code:
---------------
this line should escape ' to ''
$data[$key] = str_replace("''", "'", $data[$key]);

but to escape ' right you have to change this line to:
$data[$key] = str_replace("'", "''", $data[$key]);

[2005-09-02 21:02 UTC] torsten dot roehr at gmx dot de

There is no file oci8.php in the HTTP_Session package.

[2005-09-02 21:22 UTC] torsten dot kerwien at gmx dot net

The Error is in the DB Package

Description:
------------
The ' escape doesen't work.

Reproduce code:
---------------
this line should escape ' to ''
$data[$key] = str_replace("''", "'", $data[$key]);

but to escape ' right you have to change this line to:
$data[$key] = str_replace("'", "''", $data[$key]);