Re: AIM/mp2 Apache::compat bug?

[prev] [thread] [next] [Date index for 2004/11/23]

From: Stas Bekman
Subject: Re: AIM/mp2 Apache::compat bug?
Date: 17:22 on 23 Nov 2004
Malcolm J Harwood wrote:
> On Tuesday 23 November 2004 11:56 am, Stas Bekman wrote:
> 
> 
>>>>with mp2 you need to update the stat info yourself each time you update
>>>>$r->filename. something like this:
>>>>
>>>> $r->filename($newfile);
>>>> $r->finfo(APR::Finfo::stat($newfile, APR::FINFO_NORM, $r->pool));
> 
> 
>>I've updated the docs to mention that:
>>http://perl.apache.org/docs/2.0/api/Apache/RequestRec.html#C_filename_
> 
> 
> Out of curiosity, what was the reason for the change? I would have thought it 
> is much more prone to user error (people not knowing or forgetting to update 
> the states). Are there cases where you'd change the filename but not need to 
> restat it?

That's really a question to httpd developers, mod_perl just provides the 
perl API for the Apache C API.

Granted we could do that behind the scenes, but it's not always the 
desired behavior so I'm not sure we should. May be an option argument 
could be passed to do the work?


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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

(message missing)

Re: AIM/mp2 Apache::compat bug?
RobertCZ 07:33 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Geoffrey Young 12:54 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
RobertCZ 16:31 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Stas Bekman 16:56 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Malcolm J Harwood 17:17 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Stas Bekman 17:22 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Geoffrey Young 17:56 on 23 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Tom Schindl 16:06 on 24 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Geoffrey Young 19:08 on 24 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Stas Bekman 20:34 on 24 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Geoffrey Young 03:02 on 27 Nov 2004

Re: AIM/mp2 Apache::compat bug?
Stas Bekman 16:16 on 29 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52