You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Schindl <to...@gmx.at> on 2005/05/04 10:04:57 UTC

APR::Finfo

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm banging my head against the fact how one could use the APR::Finfo
without having a pool. Is this simply impossible? I though APR::* could
be used without mod_perl?

The docs state:
- --------------8<--------------
my $finfo = APR::Finfo::stat("/tmp/test", APR::Const::FINFO_NORM, $pool);
- --------------8<--------------

Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCeIIpkVPeOFLgZFIRAkMhAJwOFBDoZtfFWghgb5bKST+uKYyS+gCeO9LI
U+rfM9c8+XUPZXsmH5YPkuE=
=nImC
-----END PGP SIGNATURE-----

Re: APR::Finfo

Posted by Tom Schindl <to...@gmx.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Markus Wichitill schrieb:
| Tom Schindl wrote:
|
|> I'm banging my head against the fact how one could use the APR::Finfo
|> without having a pool. Is this simply impossible? I though APR::* could
|> be used without mod_perl?
|>
|> The docs state:
|> --------------8<--------------
|> my $finfo = APR::Finfo::stat("/tmp/test", APR::Const::FINFO_NORM, $pool);
|> --------------8<--------------
|
|
| Just create your own pool:
|
| my $pool = APR::Pool->new();
| my $finfo = APR::Finfo::stat("/tmp/test", APR::Const::FINFO_NORM, $pool);
|
|

Thanks. I could not believe that I haven't found that my own ;-)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCeJfTkVPeOFLgZFIRAmnjAJ9OwJsMrqna+p4BQshFKDFJbRwjrwCbBf7C
w/WN6E25Or4rO9UN1nOJd3A=
=gnSI
-----END PGP SIGNATURE-----

Re: APR::Finfo

Posted by Markus Wichitill <ma...@gmx.de>.
Tom Schindl wrote:
> I'm banging my head against the fact how one could use the APR::Finfo
> without having a pool. Is this simply impossible? I though APR::* could
> be used without mod_perl?
> 
> The docs state:
> --------------8<--------------
> my $finfo = APR::Finfo::stat("/tmp/test", APR::Const::FINFO_NORM, $pool);
> --------------8<--------------

Just create your own pool:

my $pool = APR::Pool->new();
my $finfo = APR::Finfo::stat("/tmp/test", APR::Const::FINFO_NORM, $pool);