gunnar: server/pear/PEAR-DB/patches/PEAR-DB-1.7.13 t_framework_HK_GW_DB_SqliteErrorChecking.diff, NONE, 1.1

cvs at kolab.org cvs at kolab.org
Fri Jan 22 00:10:30 CET 2010


Author: gunnar

Update of /kolabrepository/server/pear/PEAR-DB/patches/PEAR-DB-1.7.13
In directory doto:/tmp/cvs-serv11029/PEAR-DB-1.7.13

Added Files:
	t_framework_HK_GW_DB_SqliteErrorChecking.diff 
Log Message:
Fix name of the patch directory.

--- NEW FILE: t_framework_HK_GW_DB_SqliteErrorChecking.diff ---
From: Gunnar Wrobel <p at rdus.de>
Subject: [PATCH] t/framework/HK/GW/DB/SqliteErrorChecking

Fix error checking in the sqlite PEAR implementation.

Signed-off-by: Gunnar Wrobel <p at rdus.de>

---
 horde-webmail/pear/DB/sqlite.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/horde-webmail/pear/DB/sqlite.php b/horde-webmail/pear/DB/sqlite.php
index bf2acec..00e65f4 100644
--- a/horde-webmail/pear/DB/sqlite.php
+++ b/horde-webmail/pear/DB/sqlite.php
@@ -742,7 +742,7 @@ class DB_sqlite extends DB_common
         
         // PHP 5.2+ prepends the function name to $php_errormsg, so we need
         // this hack to work around it, per bug #9599.
-        $errormsg = preg_replace('/^sqlite[a-z_]+\(\): /', '', $errormsg);
+        $errormsg = preg_replace('/^sqlite[a-z_]+\(\) \[[^\]]*\]: /', '', $errormsg);
         
         if (!isset($error_regexps)) {
             $error_regexps = array(
-- 
tg: (018dab9..) t/framework/HK/GW/DB/SqliteErrorChecking (depends on: t/framework/HK/GW/Kolab/XfbFixes)
-- 
TOPGIT patch commit log
=======================

commit 1dd36cf01fd707c95af690339799bc5ce73a05c0
Author: Gunnar Wrobel <p at rdus.de>
Date:   Sun Feb 1 16:52:24 2009 +0000

    Added patch release/HK-GW-DB_sqlite-Incorrect_error_check.patch from the mercurial release queue.





More information about the commits mailing list