#26398 [Opn]: DB::sqlite request for adding error control operator for function calls

From: Date: Tue, 25 Nov 2003 11:13:05 +0000
Subject: #26398 [Opn]: DB::sqlite request for adding error control operator for function calls
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50979@lists.php.net to get a copy of this message
ID: 26398 User updated by: dimitri at vinogradov dot de Reported By: dimitri at vinogradov dot de Status: Open -Bug Type: Feature/Change Request +Bug Type: SQLite related Operating System: irrelevant PHP Version: Irrelevant New Comment: Just changed Category to SQLite related... (hm... no PEAR related category more ??) Previous Comments: ------------------------------------------------------------------------ [2003-11-25 06:07:26] 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); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26398&edit=1

« previous php.bugs (#50979) next »