Re: [Patch 1.3] $r->args(undef) doesn't work

2002-05-28 Thread Stephen Clouse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, May 28, 2002 at 03:50:15PM -0400, Geoffrey Young wrote: > I'm not sure, though, if this isn't a more pervasive bug for other > request_rec fields. I added some trace statements in Apache.xs and it > seems that even if $val is undef that ST(

Re: ModPerl::Registry root

2002-05-28 Thread Doug MacEachern
On Wed, 29 May 2002, Stas Bekman wrote: > > if a subclass wants to keep the cache in its own package, it can do: > > but then it ends up not under 1 "root" right. difference is, the subclass defined that behavior. currently it is not possible for a subclass to define where the cache lives.

Re: ModPerl::Registry root

2002-05-28 Thread Stas Bekman
Doug MacEachern wrote: > in more detail.. here are the issues i see with the current > implementation of script cache and symbol table entries: > > 1) cache location is not flexible. forces creation of a > global variable with the same name as the subclass: > > no strict 'refs'; > ${ $o->[CLA

Re: examples for Apache2 API?

2002-05-28 Thread Stas Bekman
Tatsuhiko Miyagawa wrote: > At Tue, 28 May 2002 23:24:56 +0800, > Stas Bekman wrote: > > >>>Any pointers (including suggestions for the article) are welcome. >> >>When do you need to publish it? > > > I've been told that July 10th will be the deadline ;) Great, so we have time! >>I'm working

Re: is MP_AP_PREFIX required now?

2002-05-28 Thread Doug MacEachern
On Tue, 28 May 2002, Stas Bekman wrote: > If I build 2.0 using MP_APXS I get a bunch of warnings: > >Use of uninitialized value in -d at lib/Apache/Build.pm line 77. > > since I don't set MP_AP_PREFIX and the code doesn't check if it's set > and uses it in -d op. > > should the MP_APXS be

Re: ModPerl::Registry root

2002-05-28 Thread Doug MacEachern
in more detail.. here are the issues i see with the current implementation of script cache and symbol table entries: 1) cache location is not flexible. forces creation of a global variable with the same name as the subclass: no strict 'refs'; ${ $o->[CLASS] }->{ $o->[PACKAGE] }->... #for exa

[Patch 1.3] $r->args(undef) doesn't work

2002-05-28 Thread Geoffrey Young
hi guys... Lyle brought this to my attention during some other offline discussions this afternoon. apparently, under mod_perl 1.3, $r->args(undef) doesn't work properly. to test, just add this line to your httpd.conf: PerlInitHandler 'sub {shift->args(undef); return 0}' and try ac

Re: examples for Apache2 API?

2002-05-28 Thread Tatsuhiko Miyagawa
At Tue, 28 May 2002 23:24:56 +0800, Stas Bekman wrote: > > Any pointers (including suggestions for the article) are welcome. > > When do you need to publish it? I've been told that July 10th will be the deadline ;) > I'm working on my OSC paper (intro to > mod_perl 2.0) partially based on the

Re: examples for Apache2 API?

2002-05-28 Thread Stas Bekman
Tatsuhiko Miyagawa wrote: > Now I have an offer from a technical magazine to write mod_perl 2.0 > article, to illustrate the power of Apache2 / mod_perl 2.00, in > Japanese. cool! > There I want to write mod_perl 2.0 specific things like generic > protocols, filter API, APR, Apache::Test etc. Is

is MP_AP_PREFIX required now?

2002-05-28 Thread Stas Bekman
If I build 2.0 using MP_APXS I get a bunch of warnings: Use of uninitialized value in -d at lib/Apache/Build.pm line 77. since I don't set MP_AP_PREFIX and the code doesn't check if it's set and uses it in -d op. should the MP_APXS be dropped, or the above adjusted to? : Index: lib/Apache/

Re: ModPerl::Registry root

2002-05-28 Thread Stas Bekman
Doug MacEachern wrote: > haven't looked to much, but it seems ModPerl::Registry does not compile > everything under the same root package as 1.x does with Apache::ROOT:: > > but instead does something more obscure that also requires no strict > 'refs' all over the place. 1.x was much cleaner t

Re: mod_perl benchmarking (was Re: documenting SetHandler perl-script|modperl)

2002-05-28 Thread Stas Bekman
David Jacobs wrote: > I've had trouble benchmarking some of my mod_perl scripts on my desktop. > The http_load tool we usually use (all under RedHat) works fine with > static pages or CGI, but when I use it on mod_perl scripts I get a "byte > count wrong" error. This could be because of somethi

Problem with tied STDIN, CGI.pm mod_perl 1.26 and perl 5.6.1

2002-05-28 Thread Lincoln Stein
No kidding! What strange behavior. This must be a rare circumstance, because I've been running mod_perl and 5.6.1 for some time now. Perhaps it is only particular versions of mod_perl? I'll add the patch you suggest, even though passing a bareword FH to a sub is usually considered a bad thing t

Re: PerlSetEnv not available inside of PerlRequire script

2002-05-28 Thread Gerald Richter - ecos gmbh
> On Mon, 27 May 2002, Gerald Richter wrote: > > > ok, this looks better, but I don't see the PassEnv setting? > > should be there now, my first patch had only applied SetEnv, both are done > now. > Thanks, it's working now as it should for me :-) Gerald --