perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Compat implementations of method_register and server_root_relative in tests ?
Date Mon, 09 Aug 2004 21:10:07 GMT
Philippe M. Chiasson wrote:

>          ok t_filepath_cmp(canonpath(Apache->server_root_relative),
>                            canonpath($server_root),
>                            'Apache->server_root_relative()');
> +
> +        ok t_filepath_cmp(canonpath(Apache->server_root_relative('/tmp')),
> +                          canonpath('/tmp'),
> +                          "Apache->server_root_relative('/tmp')");
>      }

I think it's more like:

    $path = catdir Apache::ServerUtil::server_root, "logs";
    ok t_filepath_cmp(canonpath(Apache->server_root_relative($path)),
                          canonpath($path),
                          "Apache->server_root_relative($path)");

since usually it's:

   $r->server_root_relative($component), where $component is either 
relative to serverroot or already a full path (whose base is serverroot)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message