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?
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.
--Geoff
|