{"id":1208,"date":"2005-11-07T05:00:37","date_gmt":"2005-11-07T15:00:37","guid":{"rendered":"https:\/\/risacher.org\/jfdi\/?p=1208"},"modified":"2013-11-11T20:57:53","modified_gmt":"2013-11-12T01:57:53","slug":"20051107-0-3","status":"publish","type":"post","link":"https:\/\/risacher.org\/jfdi\/2005\/11\/20051107-0-3\/","title":{"rendered":"Apache2::Reload and Class::DBI"},"content":{"rendered":"<p><body>I had some issues with Apache2::Reload and Class::DBI not playing nice together. The problem s something about CDBI not wanting to over-write existing symbols when it reloads classes. I found a hack on some japanese Perl forum for Apache::Reload, and I ported it to Apache2. Hopefully this helps somebody. <\/p>\n<p> This is the modified section of \/usr\/lib\/perl5\/Apache2\/Reload.pm, version 0.09:<\/p>\n<p> if ($mtime &gt; $Stat{$file}) {<br \/> my $package = module_to_package($key);<br \/> if ( UNIVERSAL::isa($package, &#39;Class::DBI&#39;) ){<br \/> no strict &#39;refs&#39;;<br \/> warn &quot;Apache2::Reload: clear the symbol table of $package\\n&quot; if $DEBUG;<br \/> %{&quot;$package\\::&quot;} = ();<br \/> }<br \/> ModPerl::Util::unload_package($package);<br \/> require $key;<br \/> warn(&quot;Apache2::Reload: process $$ reloading $package from $key\\n&quot;)<br \/> if $DEBUG;<br \/> } <\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had some issues with Apache2::Reload and Class::DBI not playing nice together. The problem s something about CDBI not wanting to over-write existing symbols when it reloads classes. I found a hack on some japanese Perl forum for Apache::Reload, and I ported it to Apache2. Hopefully this helps somebody. This is the modified section of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1208","post","type-post","status-publish","format-standard","hentry","category-ancient"],"_links":{"self":[{"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/posts\/1208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/comments?post=1208"}],"version-history":[{"count":1,"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/posts\/1208\/revisions"}],"predecessor-version":[{"id":1209,"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/posts\/1208\/revisions\/1209"}],"wp:attachment":[{"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/media?parent=1208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/categories?post=1208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/risacher.org\/jfdi\/wp-json\/wp\/v2\/tags?post=1208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}