httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <gyo...@laserlink.net>
Subject RE: [RFC] Patch (Was: Apache::Request patch request (fwd))
Date Mon, 12 Mar 2001 18:06:59 GMT
Hi.

  compiles ok on linux with bleedperl...

>   1) rewrites Apache::Request::param as an xsub, incorporating Jody's
>      above fix. I'm not sure I did it right, since I'm still not 
>      comfortable with my understanding of XS.  It seems to work under
>      light testing though. My reason for XS'ing param() was mainly to
>      eliminate any need for $r->parms.


I tried to use param() like parms() with this simple program and I get the
appropriate results, but

Attempt to free unreferenced scalar at /usr/local/apache/perl-bin/request.pl
line 5.

#!/usr/bin/perl

my $r = Apache::Request->new(shift);
my $table = $r->param;
$r->send_http_header('text/plain');
print $table->get('foo');

--Geoff

> 


Mime
View raw message