Home » Database » DB » Bug #292
DB::sqlite request for adding error control operator for function calls
Details
| Submitted | 2003-11-25 11:16 UTC |
|---|---|
| From | dimitri at vinogradov dot de |
| Assigned | danielc |
| Status | Closed |
| Package | DB |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| 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...