Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [Fwd: Apache::Reload Module]: msg#00149

apache.mod-perl.devel

Subject: Re: [Fwd: Apache::Reload Module]

On Wed, 2003-06-18 at 17:19, Steve Hay wrote:
> Hi Philippe,
>
> Philippe M. Chiasson wrote:
>
> >Here is some code I've ripped from an in-house Apache::Reload
> >equivalent... It's a bit convoluted, but does work quite nicely.
> >
> Thanks for the code -- it looks excellent to me.

no problem

> I've attached a patch for Apache::Reload that makes use of your code to
> achieve what I'm after. The patch is against the Apache::Reload
> currently in mp2 cvs. Things to note:
>
> 1. I've removed Apache::ServerUtil and Apache::RequestUtil -- they
> didn't seem to be being used.
> 2. I've removed the ConstantRedefineWarnings option because your code
> makes use of Apache::Symbol::undef() which avoids those warnings anyway.
> 3. I've removed the part of your code that skipped removing top-level
> packages -- I (perhaps unwisely) use such names a lot!
>
> If this is going to be put into mp2 (which I certainly hope it is) then
> Apache::Symbol will need to be put back too since your code relies on it.
>
> I've also attached a patch that will produce a mp1-compatible version of
> the same: Start with the current cvs mp2 Apache::Reload and apply the
> main patch to it, then apply the "for_mp1" patch to that.

Can you instead look at this patch:
http://marc.theaimsgroup.com/?l=apache-modperl-dev&m=105591352209314&w=2

And integrate that into an mod_perl 1 & 2 Apache::Reload instead? I
would rather not have to maintain 2 ever so slightly different versions
of Apache::Reload if that can be avoided.

> I've quickly tested this mp1-compatible version, and it seems to be
> working so far: no "subroutine redefined" warnings are being produced
> (not even for constant subroutines), and imported subroutines are not
> being mistakenly undefined. I hope this can be added to mp1.28 (which
> already has Apache::Symbol, of course).

Just might ;-)

I guess Apache::Symbol might need to be re-created for mp2. According
to :
$> fgrep Apache::Symbpl mp2/docs/deprecated_features.txt
+ Apache::Symbol: unknown

There are only 3 functions in there, and they are:
undef
sv_name
cv_const_sv

I don't see why we can't find some room for those somewhere in mp2,
especially the magical 'undef' function in there.

Stas: BTW, for Apache::Reload, to get rid of that constant subroutine
redefined, that XS implemtation would get rid of it without a need for
skip_redefine_const_sub_warn. No more $SIG{__WARN__} ;-)

How about if I ported Apache::Symbol::undef to ModPerl::Util::undef ?

Gozer out to bed.

> Steve
>
> ______________________________________________________________________
--
--------------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation