perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/user/porting compat.pod porting.pod
Date Mon, 19 Jan 2004 19:00:51 GMT
geoff       2004/01/19 11:00:51

  Modified:    src/docs/2.0/api/Apache ServerUtil.pod
               src/docs/2.0/user/config config.pod
               src/docs/2.0/user/porting compat.pod porting.pod
  Log:
  Apache::exists_config_define is now Apache::Server::exists_config_define
  
  Revision  Changes    Path
  1.13      +2 -2      modperl-docs/src/docs/2.0/api/Apache/ServerUtil.pod
  
  Index: ServerUtil.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/Apache/ServerUtil.pod,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ServerUtil.pod	19 Jan 2004 18:48:31 -0000	1.12
  +++ ServerUtil.pod	19 Jan 2004 19:00:51 -0000	1.13
  @@ -79,7 +79,7 @@
   
   Check for a definition from the server command line
   
  -  $result = Apache::exists_config_define($name);
  +  $result = Apache::Server::exists_config_define($name);
   
   =over 4
   
  @@ -95,7 +95,7 @@
   
   For example:
   
  -  print "this is mp2" if Apache::exists_config_define('MODPERL2');
  +  print "this is mp2" if Apache::Server::exists_config_define('MODPERL2');
   
   
   
  
  
  
  1.55      +5 -5      modperl-docs/src/docs/2.0/user/config/config.pod
  
  Index: config.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/config/config.pod,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- config.pod	12 Jan 2004 04:30:46 -0000	1.54
  +++ config.pod	19 Jan 2004 19:00:51 -0000	1.55
  @@ -1186,11 +1186,11 @@
     </IfDefine>
   
   If you need to access any of the startup defines in the Perl code you
  -use C<Apache::exists_config_define>. For example in a startup file you
  +use C<Apache::Server::exists_config_define>. For example in a startup file you
   can say:
   
     use Apache::ServerUtil ();
  -  if (Apache::exists_config_define("PERLDB")) {
  +  if (Apache::Server::exists_config_define("PERLDB")) {
         require Apache::DB;
         Apache::DB->init;
     }
  @@ -1198,7 +1198,7 @@
   For example to check whether the server has been started in a single
   mode use:
   
  -  if (Apache::exists_config_define("ONE_PROCESS")) {
  +  if (Apache::Server::exists_config_define("ONE_PROCESS")) {
         print "Running in a single mode";
     }
   
  @@ -1218,9 +1218,9 @@
     </IfDefine>
   
   From within Perl code this can be tested with
  -C<Apache::exists_config_define()>, for example:
  +C<Apache::Server::exists_config_define()>, for example:
   
  -  if (Apache::exists_config_define("MODPERL2")) {
  +  if (Apache::Server::exists_config_define("MODPERL2")) {
         # some 2.0 specific code
     }
   
  
  
  
  1.36      +1 -1      modperl-docs/src/docs/2.0/user/porting/compat.pod
  
  Index: compat.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/porting/compat.pod,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- compat.pod	19 Jan 2004 18:16:57 -0000	1.35
  +++ compat.pod	19 Jan 2004 19:00:51 -0000	1.36
  @@ -521,7 +521,7 @@
   =head2 C<Apache-E<gt>define>
   
   C<Apache-E<gt>define> has been replaced with
  -C<Apache::exists_config_define()> residing inside
  +C<Apache::Server::exists_config_define()> residing inside
   C<Apache::ServerUtil>.
   
   See the
  
  
  
  1.16      +2 -2      modperl-docs/src/docs/2.0/user/porting/porting.pod
  
  Index: porting.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/porting/porting.pod,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- porting.pod	4 Dec 2003 04:51:35 -0000	1.15
  +++ porting.pod	19 Jan 2004 19:00:51 -0000	1.16
  @@ -1297,14 +1297,14 @@
     </IfDefine>
   
   From within Perl code this can be tested with
  -C<Apache::exists_config_define()>. For example, we can use this method
  +C<Apache::Server::exists_config_define()>. For example, we can use this method
   to decide whether or not to call C<$r-E<gt>send_http_header()>, which
   no longer exists in mod_perl 2.0:
   
     sub handler {
         my $r = shift;
         $r->content_type('text/html');
  -      $r->send_http_header() unless Apache::exists_config_define("MODPERL2");
  +      $r->send_http_header() unless Apache::Server::exists_config_define("MODPERL2");
         ...
     }
   
  
  
  

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


Mime
View raw message