You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2002/11/29 11:09:15 UTC

[patch] Apache::DB now works with 5.8.0+

To all those having problems with Apache::DB and perl 5.8.0+ (CC'ing all 
those who have complained recently).

Try this patch:

--- Apache-DB-0.06/DB.pm.old	1999-10-12 07:50:33.000000000 +0800
+++ Apache-DB-0.06/DB.pm	2002-11-29 18:03:47.000000000 +0800
@@ -14,6 +14,7 @@
  $Apache::Registry::MarkLine = 0;

  sub init {
+    *DB::DB = sub {} unless DB->can("DB"); # temp definition for 5.8.0+
      if(init_debugger()) {
  	warn "[notice] Apache::DB initialized in child $$\n";
      }

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com