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: [mp1 Patch] Looking for magic in Apache->request: msg#00335

apache.mod-perl.devel

Subject: Re: [mp1 Patch] Looking for magic in Apache->request


I'm not sure why that code was there. So I'm not so confident on removing it. mp1's test suite is too poor for regression testing.


Yeah, you can say that again. I dunno if it would be eventually worth it
to port mp1's tests to Apache::Test and try and achieve better
covereage. But once again, how long are we planning mp1 will stick
around ? Would it be worth it ? (not for 1.28 for sure)

mp1 is here to stay for a while. However if you don't change its guts you are safe from breaking things. Millions of installations are a good test suite ;)

It's definitely not worth spending time to port the test suite, since we have too few resources to spend on bringing mp2 to a production level. Once that's completed we can think of rewriting mp1's test suite.

Index: lib/Apache/Registry.pm
===================================================================
RCS file: /home/cvs/modperl/lib/Apache/Registry.pm,v
retrieving revision 1.34
diff -u -I$Id -r1.34 Registry.pm
--- lib/Apache/Registry.pm 23 May 2002 04:21:07 -0000 1.34
+++ lib/Apache/Registry.pm 28 May 2003 12:53:54 -0000
@@ -33,13 +33,6 @@

sub handler {
my $r = shift;
- if(ref $r) {
- $r->request($r);
- }
- else {
- #warn "Registry args are: ($r, @_)\n";
- $r = Apache->request;
- }

This has to do with subclasses, I suppose. Which seem to allow calling handler() with no real $r object. I'd keep it in.


Hrm, not super sure about it, but I just didn't like the fact that with
my patch applied, the modperl_request_rec_sv would be set for every
single Apache::Registry requests, which is quite a waste, since it does
not set it to a subclass of 'Apache'. Just would prefer avoiding
creation of useless SV unless it's really neded. How about:

but since everybody seems to agree that your patch shoudln't be applied now, we don't have to worry about it, no?

<untested patch>
- if(ref $r) {
+ if(ref($r) ne 'Apache') {
</untested patch>

What's Apache::CGI? If you remove it, will it break that module?



For the love of me, I couldn't find it anywhere, search.cpan.org or
google, so ...

It must be autovivified on a certain moon phase ;)

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


<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