cvs: pear /MDB2/MDB2/Driver sqlite.php

From: Date: Thu, 25 Nov 2004 23:34:08 +0000
Subject: cvs: pear /MDB2/MDB2/Driver sqlite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-26503@lists.php.net to get a copy of this message
lsmith Thu Nov 25 18:34:08 2004 EDT Modified files: /pear/MDB2/MDB2/Driver sqlite.php Log: - track errors during connect http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/sqlite.php?r1=1.40&r2=1.41&ty=u Index: pear/MDB2/MDB2/Driver/sqlite.php diff -u pear/MDB2/MDB2/Driver/sqlite.php:1.40 pear/MDB2/MDB2/Driver/sqlite.php:1.41 --- pear/MDB2/MDB2/Driver/sqlite.php:1.40 Thu Nov 25 17:18:12 2004 +++ pear/MDB2/MDB2/Driver/sqlite.php Thu Nov 25 18:34:07 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.40 2004/11/25 22:18:12 lsmith Exp $ +// $Id: sqlite.php,v 1.41 2004/11/25 23:34:07 lsmith Exp $ // /** @@ -312,7 +312,11 @@ } $function = ($this->options['persistent'] ? 'sqlite_popen' : 'sqlite_open'); + $php_errormsg = ''; + ini_set('track_errors', true); $connection = @$function($database_file); + ini_restore('track_errors'); + $this->_lasterror = isset($php_errormsg) ? $php_errormsg : ''; if (!$connection) { return $this->raiseError(MDB2_ERROR_CONNECT_FAILED); } @@ -388,6 +392,7 @@ $function = $this->options['result_buffering'] ? 'sqlite_query' : 'sqlite_unbuffered_query'; + $php_errormsg = ''; ini_set('track_errors', true); $result = @$function($query.';', $connection); ini_restore('track_errors');

« previous php.pear.cvs (#26503) next »