ANNOUNCE: Embperl 2.0rc3

2005-03-14 Thread Gerald Richter
The URL ftp://ftp.dev.ecos.de/pub/perl/embperl/Embperl-2.0rc3.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GR/GRICHTER/Embperl-2.0rc3.tar.gz size: 653154 bytes md5: b87ceabfb9c2bc46b9ffe3fdeba6046b Since there were a lot of small changes since 2.0rc2 I decided to release anoth

Re: APR::Date

2005-03-14 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: > Malcolm J Harwood wrote: >> According to the docs, APR::Date::http parses the format: >> Sun, 06 Nov 1994 08:49:37 GMT >> as per RFC 822. >> However it does not seem to parse >> Sun, 06 Nov 1994 08:49:37 EST >> correctly. It assumes it's GMT rega

Custom 500 error pages under MP2?

2005-03-14 Thread Barry Hoggard
What is the best way to do the MyError example from the Eagle book in MP2? If I get an uncaught error, and I have something like this set up: ErrorDocument 500 /error SetHandler perl-script PerlResponseHandler MyError How can I get to the text of the error? It doe

Re: APR::Date

2005-03-14 Thread Stas Bekman
Malcolm J Harwood wrote: According to the docs, APR::Date::http parses the format: Sun, 06 Nov 1994 08:49:37 GMT as per RFC 822. However it does not seem to parse Sun, 06 Nov 1994 08:49:37 EST correctly. It assumes it's GMT regardless of the timezone specified. If I'm reading RC822 correctly, th

APR::Date

2005-03-14 Thread Malcolm J Harwood
According to the docs, APR::Date::http parses the format: Sun, 06 Nov 1994 08:49:37 GMT as per RFC 822. However it does not seem to parse Sun, 06 Nov 1994 08:49:37 EST correctly. It assumes it's GMT regardless of the timezone specified. If I'm reading RC822 correctly, this is an e

Re: [BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-14 Thread Stas Bekman
Dominique Quatravaux wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Because ModPerl::RegistryCooker->rewrite_shebang() adds a line on top of the file in order to honor e.g. the "-w" in "#!/usr/bin/perl -w", the debugger loses count. The (trivial) patch below against SVN trunk fixes that (the

Re: ModPerl performance on BSDs

2005-03-14 Thread Dan Brian
I've been running mp2 in production on FreeBSD 4.9 without issue for about 6 months. On Mar 14, 2005, at 7:28 AM, William McKee wrote: On Thu, Mar 10, 2005 at 04:15:38PM -0500, Jonathan Vanasco wrote: I've been looking mostly at NetBSD, FreeBSD and OpenBSD -- has anyone had remarkable success or

Re: very basic question

2005-03-14 Thread Brian Reichert
On Thu, Mar 10, 2005 at 02:43:44PM -0600, Jain, Abhay K, ALABS wrote: > I must apologize if it is not directly relevant to mod-perl. > I have tried to search google and other places but no luck. > As I had mentioned I have apache built with mod-perl 2. > Some old cgi scripts were written in ksh and

[BUG] line numbering off-by-one with Apache::DB and RegistryCooker

2005-03-14 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Because ModPerl::RegistryCooker->rewrite_shebang() adds a line on top of the file in order to honor e.g. the "-w" in "#!/usr/bin/perl -w", the debugger loses count. The (trivial) patch below against SVN trunk fixes that (the "use warnings; " statement n

Re: ModPerl performance on BSDs

2005-03-14 Thread William McKee
On Thu, Mar 10, 2005 at 04:15:38PM -0500, Jonathan Vanasco wrote: > I've been looking mostly at NetBSD, FreeBSD and OpenBSD -- has anyone > had remarkable success or misfortune with modperl2 under these > environments in regards to speed or running? Hi Jonathan, I've been running mp1 under Free

Re: Getting %ENV into a filter

2005-03-14 Thread Stas Bekman
Mike Whitaker wrote: [Mon Mar 14 12:25:24 2005] [error] [client 192.168.1.107] Can't locate object method "subprocess_env" via package "Apache::RequestRec" at Foo.pm line 22. You need to load: use Apache::RequestRec (); See: http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html#Command_Li

Re: Getting %ENV into a filter

2005-03-14 Thread Mike Whitaker
[Mon Mar 14 12:25:24 2005] [error] [client 192.168.1.107] Can't locate object method "subprocess_env" via package "Apache::RequestRec" at Foo.pm line 22. Just to sanity check, I peeked at $f->r, and it does appear to be what it's supposed to: - Apache::RequestRec=SCALAR(0x82de098) but it doesn'

Getting %ENV into a filter

2005-03-14 Thread Mike Whitaker
I'm replacing a somewhat flaky use of mod_layout with a PerlOutputFilterHandler - it's all a little bit ugly, but... Basically: I have a RewriteRule whose major function is to set an ENV variable (PACKAGE) dependent on the Host: header before invoking a CGI. The output of this CGI gets passed