You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Reif Peter <pe...@wien.gv.at> on 2015/02/10 11:29:00 UTC

Bug in documentation of Apache2::Connection

IMHO there is a bug in the docs:

http://perl.apache.org/docs/2.0/api/Apache2/Connection.html#C_get_remote_host_

  $remote_host = $c->remote_host();
  $remote_host = $c->remote_host($type);
  $remote_host = $c->remote_host($type, $dir_config);

It should be get_remote_host() instead of remote_host() !

Another aspect is not clear, when the 2 parameter form is used, how is the type of lookup determined? From $type or from $dir_config? Is $type to be set to undefined to make $dir_config relevant?