--0016e6dd95a9003adf0494cafb70
Content-Type: text/plain; charset=UTF-8
Hi everyone,
(This is a cross-post from StackOverflow. I thought there might be more
specialized experience on this list to beg help from. :) )
I'm running mod_perl 2.0.4 on Perl 5.10 on Apache 2.2.17 on Win2k3sp2.
The URI I am typing into my browser is http://myserver/?login=0.
The script being run is:
###
use strict;
use warnings FATAL => 'all';
use 5.01;
my $r = shift;
use Apache2::Request;
my $req = Apache2::Request->new($r);
use Data::Dump qq(pp);
die pp($req->unparsed_uri) . ', ' . pp($req->param) . ', ' .
pp($req->args_status());
###
Under Strawberry Perl, I get:
"/?login=0", (), "No error" at C:/myweb/index.pl line 10.
....but under ActiveState Perl (see below), I get:
"/?login=0", "login", "No error" at C:/myweb/index.pl line 10.
So I know my login parameter is making it in at some point under Strawberry,
because the unparsed URI contains it. Why is it then not being parsed
correctly?
The way I switch between the two is to simply change httpd.conf from saying
LoadFile "C:\strawberry\perl\bin\perl510.dll"
# Apache/2.2.17 (Win32) mod_apreq2-20090110/2.7.1 mod_perl/2.0.4
Perl/v5.10.1
....to this:
LoadFile "C:\Perl\bin\perl510.dll"
# Apache/2.2.17 (Win32) mod_apreq2-20051231/2.6.2-dev mod_perl/2.0.4-dev
Perl/v5.10.1
....and then restart. No other changes, it's repeatable every time switching
between the two.
Any ideas? I'd really like to try switching to Strawberry if possible,
mostly because ActivePerl's DBD::Pg builds are getting stale, and the latest
upgrade to Apache 2.2.17 has been causing random/intermittent Apache service
crashes for us these past couple weeks, I think related to DBD::Pg.
Thanks in advance for any help,
Kev
--0016e6dd95a9003adf0494cafb70
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div>Hi everyone,</div><div><br></div><div>(This is a cross-post from Stack=
Overflow. =C2=A0I thought there might be more specialized experience on thi=
s list to beg help from. =C2=A0:) )</div><div><br></div><div>I'm runnin=
g mod_perl 2.0.4 on Perl 5.10 on Apache 2.2.17 on Win2k3sp2.</div>
<div><br></div><div>The URI I am typing into my browser is <a href=3D"http:=
//myserver/?login=3D0">http://myserver/?login=3D0</a>.</div><div><br></div>=
<div>The script being run is:</div><div><br></div><div>###</div><div><br></=
div>
<div><br></div><div>use strict;</div><div>use warnings FATAL =3D> 'a=
ll';</div><div>use 5.01;</div><div><br></div><div>my $r =3D shift;</div=
><div>use Apache2::Request;</div><div>my $req =3D Apache2::Request->new(=
$r);</div>
<div><br></div><div>use Data::Dump qq(pp);</div><div>die pp($req->unpars=
ed_uri) . ', ' . pp($req->param) . ', ' . pp($req->ar=
gs_status());</div><div><br></div><div><br></div><div>###</div><div><br>
</div><div>Under Strawberry Perl, I get:</div><div><br></div><div>=C2=A0=C2=
=A0"/?login=3D0", (), "No error" at C:/myweb/<a href=3D=
"http://index.pl">index.pl</a> line 10.</div><div><br></div><div>...but und=
er ActiveState Perl (see below), I get:</div>
<div><br></div><div>=C2=A0=C2=A0"/?login=3D0", "login",=
"No error" at C:/myweb/<a href=3D"http://index.pl">index.pl</a> =
line 10.</div><div><br></div><div>So I know my login parameter is making it=
in at some point under Strawberry, because the unparsed URI contains it. W=
hy is it then not being parsed correctly?</div>
<div><br></div><div>The way I switch between the two is to simply change ht=
tpd.conf from saying</div><div><br></div><div>LoadFile "C:\strawberry\=
perl\bin\perl510.dll"</div><div># Apache/2.2.17 (Win32) mod_apreq2-200=
90110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1</div>
<div><br></div><div>...to this:</div><div><br></div><div>LoadFile "C:\=
Perl\bin\perl510.dll"</div><div># Apache/2.2.17 (Win32) mod_apreq2-200=
51231/2.6.2-dev mod_perl/2.0.4-dev Perl/v5.10.1</div><div><br></div><div>
....and then restart. No other changes, it's repeatable every time switc=
hing between the two.</div><div><br></div><div>Any ideas? =C2=A0I'd rea=
lly like to try switching to Strawberry if possible, mostly because ActiveP=
erl's DBD::Pg builds are getting stale, and the latest upgrade to Apach=
e 2.2.17 has been causing random/intermittent Apache service crashes for us=
these past couple weeks, I think related to DBD::Pg.</div>
<div><br></div><div>Thanks in advance for any help,</div><div>Kev</div>
--0016e6dd95a9003adf0494cafb70--
