6.0.0-alpha12
6/8/25

[#3545] Bug in test.php asks for Pear DB version that does not exist [with fix]
Summary Bug in test.php asks for Pear DB version that does not exist [with fix]
Queue Horde Base
Queue Version 3.0
Type Bug
State Not A Bug
Priority 1. Low
Owners
Requester jp.senior (at) gmail (dot) com
Created 02/28/2006 (7040 days ago)
Due
Updated 02/28/2006 (7040 days ago)
Assigned
Resolved 02/28/2006 (7040 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/28/2006 08:33:32 PM Chuck Hagenbuch State ⇒ Not A Bug
 
02/28/2006 08:10:23 PM jp (dot) senior (at) gmail (dot) com Comment #3 Reply to this comment
I see this has been fixed in 3.0.9 sorry for wasting everybodies time.
02/28/2006 08:04:55 PM jp (dot) senior (at) gmail (dot) com Comment #2 Reply to this comment
I'll be the first to admit a vague familiarity with the horde source 
and the pear DB package but this is certainly wrong - perhaps someone 
can nail out an appropriate version to check for.  Regardless, '2' 
certainly is wrong.
02/28/2006 08:02:14 PM jp (dot) senior (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Bug in test.php asks for Pear DB version that does not exist [with fix]
Queue ⇒ Horde Base
Reply to this comment
--- 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


Saved Queries