httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [apreq-2] $upload->tempname on Win32
Date Sun, 04 Jul 2004 17:25:02 GMT
Joe Schaefer wrote:
> Randy Kobes <randy@theoryx5.uwinnipeg.ca> writes:
> 
> [...]
> 
> 
>>+        open my $fh, "<:APR", $upload->tempname, $p or die $!;
> 
> 
> Since this is a nicely portable solution and 
> should be perfectly seekable, how would folks
> feel about implementing fh() like so:
> 
>   sub fh {
>     my $upload = shift;
>     open my $fh, "<:APR", $upload->tempname, $upload->pool or die $!;

At the moment APR::Perlio suffers from the pool object disappearance, before 
$fh is finished to be used. But I suppose since $upload->pool has the same 
life-scope as fh, it should work just fine.



-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message