Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Perrin Harkins
On Tue, 2004-01-20 at 01:07, Stas Bekman wrote: > Good thinking, Perrin. But you need to take it all the way through, because > I'm afraid you need to look at the whole picture and not lock yourlself in the > $r world. You're right, I haven't looked at anything else yet. > I understand that you

Re: apr_brigade_flatten

2004-01-20 Thread Geoffrey Young
Stas Bekman wrote: > Geoffrey Young wrote: > >> hi all >> >> joe schaefer suggested on modperl@ that having access to >> apr_brigade_flatten >> might be of use. > I certainly have no objections to opening up the entire APR API if > someone needs it. And most of the APR::(Brigade|Bucket) API is

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Hi, Am Dienstag, 20. Januar 2004 19:51 schrieb Perrin Harkins: > > What about the other 200+ > > methods in about 30 modules? People will still need to figure out what to > > load to use these (e.g. Apache::URI's methods don't necessarily work with > > $r, so how do you know that you need to load

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Perrin Harkins wrote: I understand that you will want to preload that module that knows how to AUTOLOAD the others on every handler that gets $r passed. Which works for me. Good. Do you think there should be a separate module for this, that just acts a shell for $r and AUTOLOADs other things?

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Boris Zentner wrote: Hi, Am Dienstag, 20. Januar 2004 19:51 schrieb Perrin Harkins: What about the other 200+ methods in about 30 modules? People will still need to figure out what to load to use these (e.g. Apache::URI's methods don't necessarily work with $r, so how do you know that you need to

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Perrin Harkins
On Tue, 2004-01-20 at 15:13, Stas Bekman wrote: > That's not what Perrin is talking about I think. No, it is. Boris and I are saying the same thing. > So you do suggest that a user > need to load 'Apache::RequestRec' to get $r methods? I don't think either of us meant to suggest that. > So i

Re: apr_brigade_flatten

2004-01-20 Thread Stas Bekman
Geoffrey Young wrote: [...] Index: xs/APR/Brigade/APR__Brigade.h === RCS file: /home/cvspublic/modperl-2.0/xs/APR/Brigade/APR__Brigade.h,v retrieving revision 1.4 diff -u -r1.4 APR__Brigade.h --- xs/APR/Brigade/APR__Brigade.h 29 Mar 20

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Perrin Harkins
On Tue, 2004-01-20 at 15:09, Stas Bekman wrote: > > Good. Do you think there should be a separate module for this, that > > just acts a shell for $r and AUTOLOADs other things? That would avoid > > loading Apache::RequestRec unless it is needed. Apache::RequestHandle > > maybe? > > You don't ne

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Hi, Am Dienstag, 20. Januar 2004 21:13 schrieb Stas Bekman: > Boris Zentner wrote: > > Hi, [..] > >>> Where do you install that > >>>AUTOLOAD on functions or modules which aren't $r or $s operators? > >> > >>I don't want to AUTOLOAD anything that isn't called through one of > >>those. > > > > Thi

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Perrin Harkins wrote: On Tue, 2004-01-20 at 15:13, Stas Bekman wrote: That's not what Perrin is talking about I think. No, it is. Boris and I are saying the same thing. No exactly. Boris gave an example on how he sees things should be. That example included: use Apache::RequestRec; You advoc

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Perrin Harkins wrote: On Tue, 2004-01-20 at 15:09, Stas Bekman wrote: Good. Do you think there should be a separate module for this, that just acts a shell for $r and AUTOLOADs other things? That would avoid loading Apache::RequestRec unless it is needed. Apache::RequestHandle maybe? You don't

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
HI, just to clarify it, I mean it like Perrin but not that stong, I have no problem to load a package to use it. My problem is to load package bar to fill methods for package foo. The autoload stuff is only needed for the larger magic classes like Request* and Server*. That is my view and it

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Perrin Harkins
On Tue, 2004-01-20 at 16:02, Boris Zentner wrote: > just to clarify it, I mean it like Perrin but not that stong, I have no > problem to load a package to use it. My problem is to load package bar to > fill methods for package foo. When someone passes your handler a live $r object, you shouldn't

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Perrin Harkins wrote: On Tue, 2004-01-20 at 16:02, Boris Zentner wrote: just to clarify it, I mean it like Perrin but not that stong, I have no problem to load a package to use it. My problem is to load package bar to fill methods for package foo. When someone passes your handler a live $r obj

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Am Dienstag, 20. Januar 2004 22:04 schrieb Perrin Harkins: > On Tue, 2004-01-20 at 16:02, Boris Zentner wrote: > > just to clarify it, I mean it like Perrin but not that stong, I have no > > problem to load a package to use it. My problem is to load package bar to > > fill methods for package foo.

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Am Dienstag, 20. Januar 2004 22:17 schrieb Stas Bekman: > So my idea was to list all Apache::RequestRec methods in the > Apache::RequestRec manpage, but have the bodies of most of them spread > across Apache::RequestIO, etc, just like it is now. That's if you use the > web interface. It won't quite

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Am Dienstag, 20. Januar 2004 22:31 schrieb Boris Zentner: >           Apache::Request::* bla bla bla > > I hope the spaces are correct in your mailers. Just to be sure > Apache::RequestIO and Apache::Request::* are indented. sorry I mean Apache::Request* _not_ Apache::Request::* -- Boris --

Re: [mp2] exists_config_define

2004-01-20 Thread Philippe M. Chiasson
On Mon, 2004-01-19 at 14:06, Geoffrey Young wrote: > > [...] > > > > May be we should take this further and make Apache::Server what Apache:: > > is used to be: i.e., just the httpd accessors. And create > > Apache::ServerRec similar to Apache::RequestRec which will give the > > access to $s? > >

Re: unescaping the error_log

2004-01-20 Thread Philippe M. Chiasson
On Wed, 2004-01-07 at 09:56, Stas Bekman wrote: > Geoffrey Young wrote: > [...] Sorry for kicking in late on this thread, but lemme share my 0.02$ > I'm very unhappy about this change in Apache, but besides me everybody keeps > quiet and doesn't complain/looking for solutions in the core of the

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Boris Zentner wrote: Am Dienstag, 20. Januar 2004 22:17 schrieb Stas Bekman: So my idea was to list all Apache::RequestRec methods in the Apache::RequestRec manpage, but have the bodies of most of them spread across Apache::RequestIO, etc, just like it is now. That's if you use the web interface.

Re: unescaping the error_log

2004-01-20 Thread Stas Bekman
Philippe M. Chiasson wrote: On Wed, 2004-01-07 at 09:56, Stas Bekman wrote: Geoffrey Young wrote: [...] Sorry for kicking in late on this thread, but lemme share my 0.02$ I'm very unhappy about this change in Apache, but besides me everybody keeps quiet and doesn't complain/looking for soluti

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Perrin Harkins
On Tue, 2004-01-20 at 16:17, Stas Bekman wrote: > I now more or less have an idea on how to solve the code usage problem. Great! > What I don't have clear yet is the docs issue. Certainly you want to find the > method of class Apache::RequestRec in its the right manpage > (Apache::RequestRec).

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Perrin Harkins wrote: On Tue, 2004-01-20 at 16:17, Stas Bekman wrote: I now more or less have an idea on how to solve the code usage problem. Great! My idea is replace UNIVERSAL::AUTOLOAD with AUTOLOAD for each class that contains objects, so when the method is called on that object it'll do ju

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Stas Bekman wrote: [...] > package ModPerl::EasyLife; > use ModPerl::MethodLookup; > sub my_AUTOLOAD { > my($hint, @modules) = > ModPerl::MethodLookup::lookup_method($UNIVERSAL::AUTOLOAD, @_); copy-n-paste typo: s/UNIVERSAL:://; of course > if (@modules) { > eval "r

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Am Mittwoch, 21. Januar 2004 00:11 schrieb Stas Bekman: > > translated to mp2 this may look like > > > >         Apache::Request(Rec|Handle) request record accessors > >           Apache::RequestIO Discription of IO methods of > > Apache::RequestRec Apache::Request::* bla bla bla > > > > I hope the

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Boris Zentner wrote: Am Mittwoch, 21. Januar 2004 00:11 schrieb Stas Bekman: translated to mp2 this may look like Apache::Request(Rec|Handle) request record accessors Apache::RequestIO Discription of IO methods of Apache::RequestRec Apache::Request::* bla bla bla I hope the spaces

Re: unescaping the error_log

2004-01-20 Thread Geoffrey Young
> Well, being a bit slanted on the security side, I agree with mandatory > escaping of the error_logs, as annoying it might be for development > reasons. well, we've come up with a compromize in 2.1 - compile with -DAP_UNSAFE_ERROR_LOG_UNESCAPED and the error_log will remain in its unescaped form

Re: unescaping the error_log

2004-01-20 Thread Stas Bekman
Geoffrey Young wrote: Well, being a bit slanted on the security side, I agree with mandatory escaping of the error_logs, as annoying it might be for development reasons. well, we've come up with a compromize in 2.1 - compile with -DAP_UNSAFE_ERROR_LOG_UNESCAPED and the error_log will remain in it

Re: apr_brigade_flatten

2004-01-20 Thread Geoffrey Young
>> +if (rv == APR_SUCCESS) { >> +return newSViv((int)length); >> +} >> + >> +return &PL_sv_undef; >> +} > > > won't it be better to die if it fails and stick rv into [EMAIL PROTECTED] e.g. if you > try to read a bucket which has no data? Just thinking aloud here, we > have ma

Re: apr_brigade_flatten

2004-01-20 Thread Stas Bekman
Geoffrey Young wrote: +if (rv == APR_SUCCESS) { +return newSViv((int)length); +} + +return &PL_sv_undef; +} won't it be better to die if it fails and stick rv into [EMAIL PROTECTED] e.g. if you try to read a bucket which has no data? Just thinking aloud here, we have many plac

Re: [mp2] AIX cannot load compiled libraries

2004-01-20 Thread Stas Bekman
Kailden K wrote: 1. Problem Description: On AIX 4.3.3, for mod_perl version 1.99_12 (yesterday's CVS) Compile seems to work but make test fails to load shared libraries, outputting: t/TEST -bugreport -verbose=0 /usr/local/apache2/bin/httpd -d /home/xxx/install-src/modperl-2.0/t -f /home/xxx/

Re: mod_perl 1.99_10 on AIX 5

2004-01-20 Thread Stas Bekman
Rafael, did you have a chance to debug this? The context is below if you have deleted the thread from 2 months ago. Stas Bekman wrote: Rafael Garcia-Suarez wrote: Stas Bekman wrote: mod_perl 1.99_10 on AIX 5.2 with the IBM vac compiler, using perl 5.8.1 without ithreads, is mostly OK. [...] He

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Boris Zentner
Am Mittwoch, 21. Januar 2004 01:27 schrieb Stas Bekman: > Boris Zentner wrote: [...] > >> > >>but it doesn't quite follow your previous suggestion that you should be > >>able to find *all* Apache::RequestRec object's methods in the > >> manpage. > > > > I want this yes, I use perldoc X::Y and then

Re: early perl startup in vhost on win32

2004-01-20 Thread Stas Bekman
Elizabeth Mattijsen wrote: At 10:15 -0800 1/12/04, Stas Bekman wrote: Elizabeth Mattijsen wrote: At 10:00 -0800 1/12/04, Stas Bekman wrote: % perl-5.8.3-ithread -le 'use threads; threads->new(sub { sleep 1})->detach for 1..1' A thread exited while 2 threads were running. Ah. That! That is con

Re: early perl startup in vhost on win32

2004-01-20 Thread Stas Bekman
Steve, Randy, can you please try with this patch. This is against the conf file with: PerlOptions +Parent 1; Index: src/modules/perl/modperl_cmd.c === RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_cmd.c,v retri

Re: early perl startup in vhost on win32

2004-01-20 Thread Stas Bekman
Another one to try (w/ and w/o last patch). As you realize I'm shooting in the dark, trying to guess where the context could go wrong. Thanks. Index: src/modules/perl/modperl_interp.c === RCS file: /home/cvs/modperl-2.0/src/modules/p

Re: [mp2] killing the ghost Apache:: usage?

2004-01-20 Thread Stas Bekman
Boris Zentner wrote: [...] lets suppose that we use mp2doc to search. Or even better patch perldoc. I doubt it's a good idea. Imagine every project trying to add their things and flags into perldoc. You can be sure that perldoc maintainers will say 'no'. Besides it won't help all those with the

Re: early perl startup in vhost on win32

2004-01-20 Thread Stas Bekman
Stas Bekman wrote: Another one to try (w/ and w/o last patch). As you realize I'm shooting in the dark, trying to guess where the context could go wrong. Thanks. BTW, this one if it'll do anything should affect the PerlLoadModule faulty scenario and not the 1 one. Index: src/modules/perl/modperl

Re: [mp2] non-parsed headers registry scripts

2004-01-20 Thread Stas Bekman
Stas Bekman wrote: [...] the reason I suggested a subclass was so that the rare people who require nph scripts have an outlet, while the vast majority of users are not burdened with the overhead of checking for nph- scripts on every request. A quick index() call to check for "nph-" is not going