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

DB::sqlite request for adding error control operator for function calls

Details

Submitted2003-11-25 11:16 UTC
Fromdimitri at vinogradov dot de
Assigneddanielc
StatusClosed
PackageDB
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2003-11-25 11:16 UTC] dimitri at vinogradov dot de

Description:
------------
File: DB/sqlite.php
Method: sqlite::connect
Linno: 157, 160

the failed calls of `touch` and `chmod` print warnings to browser
instead of raisung an PEAR error.

Suggest:
change (lineno 157)
touch($file);
to
if (!@touch($file)) {
return $this->raiseError($php_errormsg);
}
and (lineno 160)
chmod($file, $mode);
to
if (!@chmod($file, $mode)) {
return $this->raiseError($php_errormsg);
}

[2003-11-28 08:52 UTC] dimitri at vinogradov dot de

Just correct PEAR category...