Re: [RELEASE CANDIDATE]: mod_perl-2.0.3 RC1

2006-09-14 Thread Philip M. Gollucci
Radoslaw Zielinski wrote: > -8<-- Start Bug Report 8<-- > 1. Problem Description: > > t/directive/perldo.t fails. make test TEST_VERBOSE=1 output: This was resolved thanks to Fred Moyer and Geoff. I've just committed there patch to svn it will be in rc2

Re: passing an argument to startup.pl

2006-09-14 Thread Jonathan Vanasco
On Sep 14, 2006, at 4:58 PM, Geronimo wrote: PROBLEM: I need to pass an argument to startup.pl, in order to associate Apache2 with a specific version of an app. The app version has a simple identifier, say 'dv1'. What I'm trying to do is emulate passing an argument on the command line, wh

Re: mod_perl 2 setting request parameters

2006-09-14 Thread Jeremy Nixon
Johnny Shz <[EMAIL PROTECTED]> wrote: > I couldn't seem to find an equivalent in mod_perl 2, Apache2::Request > allows retrieving parameters by its param() method, but no way to set > the parameters to be processed further down the chain. Apache2::Request removed the ability to set the request pa

Re: passing an argument to startup.pl

2006-09-14 Thread Jeff Nokes
I guess you could try to do something dynamic with blocks in your httpd.conf ...    open(NEW_MODULE, '>Startup.pm');    print NEW_MODULE (  "package Startup;\n" .      "our $arg_1 = 'dv1';    );then within startup.pl you do ...use Startup;  (or require "Startup.pm")if($Startup::arg_1 eq 'dv1'

passing an argument to startup.pl

2006-09-14 Thread Geronimo
PROBLEM: I need to pass an argument to startup.pl, in order to associate Apache2 with a specific version of an app. The app version has a simple identifier, say 'dv1'. What I'm trying to do is emulate passing an argument on the command line, which will show up in @ARGV, like; $ /devel/start

[ANNOUNCE] Krang v2.007

2006-09-14 Thread Sam Tregar
Krang v2.007 is now available (the source release is up now and binary builds should be up soon). Notable changes in this release and in v2.006, which never received a proper announcement: * Improvements to the list-data management system, command-line tools and associated element classes.

mod_perl 2 setting request parameters

2006-09-14 Thread Johnny Shz
Hi, I'm trying to migrate some existing mod_perl 1 code to mod_perl 2. The original code uses many calls like: my $value = $r->args->{'foo'}; $r->args->{'foo'} = "bar";   to get and set request parameters. I couldn't seem to find an equivalent in mod_perl 2, Apache2::Request allows retrieving

Re: appended "success" document

2006-09-14 Thread Dave Viner
thanks all for the responses... my problem turned out to be that i was returning Apache2::Const::HTTP_OK instead of Apache2::Const::OK from my handler. This caused the document to be appended... for what it's worth, there was no additional information in the error log... but i guess that

?? modperl2-head not picking up LIB paths from apache install

2006-09-14 Thread OpenMacNews
hi all, i'm bldg modperl2 (r443381) on OSX 10.4.7 w/ Apache/2.2.4-dev, APR 1.2.8-dev, APR-Util 1.2.8-dev (all r443341), perl 588 amd msql 5.0.22 @ "perl Makefile.PL MP_APXS=/usr/local/apache2/sbin/apxs MP_USE_DSO", i see: ... Writing Makefile for ModPerl::WrapXS Not

Re: inserting handler/filter in main server vs. virtual host configuration?

2006-09-14 Thread Perrin Harkins
On Wed, 2006-09-13 at 14:24 -0400, Jeff Ambrosino wrote: > For httpd.conf in Apache 2.x / mp2, does it matter if I insert a > handler in the main server section vs. a virtual host section? My > question pertains specifically to performance/memory, as I already > understand the logical implications

Re: appended "success" document

2006-09-14 Thread Perrin Harkins
On Wed, 2006-09-13 at 22:05 -0700, Dave Viner wrote: > More information about this error may be available > in the server error log. Did you look in the error log? > My handler is quite simple, and returns Apache2::Const::OK. What > causes this extra document to be appended and how do I preven

Re: [mp2] accessing mod_perl configuration from another C module

2006-09-14 Thread Srebrenko Sehic
On 9/14/06, Srebrenko Sehic <[EMAIL PROTECTED]> wrote: I need to tap into PerlSetVar table from another C module. In mp1, you can do something like the following: #include "mod_perl.h" perl_dir_config *c = (perl_dir_config *) ap_get_module_config(r->per_dir_config, &perl_module); table *pe

Re: devel::cover does not produce any output

2006-09-14 Thread Geoffrey Young
Andreas Schuldei wrote: > hi > > i want to research what parts of our code base are unused and > added this to the mod_perl startup script: > > use Devel::Cover > "-db","cover_db","-coverage","subroutine","-dir","/www/cover","-select","/www/docs/lib"; > > apache starts just fine, i get a whole

[mp2] accessing mod_perl configuration from another C module

2006-09-14 Thread Srebrenko Sehic
I need to tap into PerlSetVar table from another C module. In mp1, you can do something like the following: #include "mod_perl.h" perl_dir_config *c = (perl_dir_config *) ap_get_module_config(r->per_dir_config, &perl_module); table *perl_vars = c->vars; char *value = ap_table_get(perl_vars,

devel::cover does not produce any output

2006-09-14 Thread Andreas Schuldei
hi i want to research what parts of our code base are unused and added this to the mod_perl startup script: use Devel::Cover "-db","cover_db","-coverage","subroutine","-dir","/www/cover","-select","/www/docs/lib"; apache starts just fine, i get a whole bunch of "redefined" warnings in my apache

appended "success" document

2006-09-14 Thread Dave Viner
Hi, I'm trying to write a simple apache module in perl and have apparent success. When i request the page from my server, I get the proper HTML output. However, appended to the end of the proper HTML, is a second HTML document that says: .. my html ... 200 OK OK The server encounte