[Tickets #3545] NEW: Bug in test.php asks for Pear DB version that does not exist [with fix]

bugs@bugs.horde.org bugs at bugs.horde.org
Tue Feb 28 12:02:14 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3545
-----------------------------------------------------------------------
 Ticket             | 3545
 Created By         | jp.senior at gmail.com
 Summary            | Bug in test.php asks for Pear DB version that does not exist [with fix]
 Queue              | Horde Base
 Version            | 3.0
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


jp.senior at gmail.com (2006-02-28 12:02) wrote:

--- test.php.old        2006-02-28 12:57:50.000000000 -0700
+++ test.php    2006-02-28 12:57:06.000000000 -0700
@@ -157,7 +157,7 @@
 {
     $peardbversion = '0';
     $peardbversion = @DB::apiVersion();
-    if ($peardbversion < 2) {
+    if ($peardbversion < 1.6) {
         return 'Your version of DB (' . $peardbversion . ') is not recent
enough.';
     }
 }


Here is a very simple patch -- Checking
http://pear.php.net/package/DB/download/ does not show any versions above
version 1.7.6 as of this post.

I put in 1.6 merely as a placeholder, I couldn't find anything radically
different between version 1.6 and 1.7 so I put 1.6 on for the check.

Cheers,
JP / sartan





More information about the bugs mailing list