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

quoteSmart() Notice error (1.6.0RC1)

Details

Submitted2004-02-10 23:01 UTC
Fromdatenpunk at php dot net
StatusBogus
PackageDB
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2004-02-10 23:01 UTC] datenpunk at php dot net

Description:
------------
quoteSmart() uses the undefined variable $str for evaluating if it should return 0 or 1.

I think

return $str ? 1 : 0;

should be

return $in ? 1 : 0;

[2004-02-10 23:07 UTC] datenpunk at php dot net

Sorry to comment myself.
Just saw that the whole thing was rewritten in CVS.
1.6.0RC1 version was bundled with 4.3.5RC2.