Geoffrey Young wrote:
Geoffrey Young wrote:
Stas Bekman wrote:
Stas Bekman wrote:
Geoff,
APR::Finfo::stat() doesn't do what C API does. The C API populates
finfo for the file passed in the argument. The current perl API
doesn't do that. It populates only $r->finfo, passed as an argument,
which may not exist at all.
I really don't understand what you mean here. APR::Finfo::stat() is
autogenerated, so it behaves _exactly_ as the C API does.
oh, I think I see where you are coming from. you wanted to return an object
instead of a status, just like we had discussed, right?
No, this is totally unrelated.
the problem is that apr_stat doesn't merely use the apr_finfo_t as a means
of returning stat information, it populates a existing apr_finfo_t for you
(like r->finfo). so, I suppose we could have it return an $finfo object,
but then we still are in need of a way to populate $r->finfo with the stat
structure. maybe $r->finfo($finfo), but I'm not sure how difficult that
would be to integrate - I haven't looked at that code in a while and can't
remember offhand.
Yes, exactly. Why should it be hard to integrate?
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]