#292 [NEW]: DB::sqlite request for adding error control operator for function calls
| From: | dimitri at vinogradov dot de | Date: | Tue, 25 Nov 2003 11:16:42 +0000 |
| Subject: | #292 [NEW]: DB::sqlite request for adding error control operator for function calls | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-23857@lists.php.net to get a copy of this message | ||
From: dimitri at vinogradov dot de
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Bug System
Bug description: DB::sqlite request for adding error control operator for function calls
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);
}
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=292&edit=1
--