PEAR is archived and read-only

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

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]);