PEAR is archived and read-only

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

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.