APR::ArrayHeader

Hi,

I was unable to find the answer how to use such an object. ServerRec::names
returns object like this:

$VAR1 = bless( do{\\(my $o = 19244608)}, 'APR::ArrayHeader' );


I know it maps to apr_array_header_t structure, but is it anyhow useful?
I wanted dynamically change ServerAlias-es for some virtual hosts, found no
solution with mod_perl.
--
Anton Petrusevich
Anton Petrusevich [ Di, 31 August 2010 22:28 ] [ ID #2046954 ]

Re: APR::ArrayHeader

On Tuesday, August 31, 2010 22:28:21 Anton Petrusevich wrote:
> I was unable to find the answer how to use such an object.
> ServerRec::names returns object like this:
>
> $VAR1 =3D bless( do{\\(my $o =3D 19244608)}, 'APR::ArrayHeader' );
>
>
> I know it maps to apr_array_header_t structure, but is it anyhow useful?
> I wanted dynamically change ServerAlias-es for some virtual hosts, found
> no solution with mod_perl.

I'd say, you are welcome to implement that class.

As a starting point you could take the patch created by

svn diff -c 541120

It implements APR::ThreadRWLock from scratch.

Torsten Förtsch

=2D-
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
torsten.foertsch [ Mi, 01 September 2010 13:45 ] [ ID #2046990 ]
Webserver » gmane.comp.apache.mod-perl » APR::ArrayHeader

Vorheriges Thema: Problem with HTML::Mason configuration?
Nächstes Thema: How to get the port used by the request