6.0.0-git
2019-03-18

[#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 2006-02-28 (4766 days ago)
Due
Updated 2006-02-28 (4766 days ago)
Assigned
Resolved 2006-02-28 (4766 days ago)
Milestone
Patch No

History
2006-02-28 20:33:32 Chuck Hagenbuch State ⇒ Not A Bug
 
2006-02-28 20:10:23 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.
2006-02-28 20:04:55 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.
2006-02-28 20:02:14 jp (dot) senior (at) gmail (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 1. Low
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