stas 2003/03/12 17:14:37 Modified: src/docs/2.0/user/compat compat.pod Log: - drop entries for functions which are the same, but live in different package (should use MethodLookup instead, or otherwise we end up having the whole API in that doc) - a few corrections for other entries Revision Changes Path 1.59 +56 -94 modperl-docs/src/docs/2.0/user/compat/compat.pod Index: compat.pod =================================================================== RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/compat/compat.pod,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- compat.pod 13 Mar 2003 00:26:40 -0000 1.58 +++ compat.pod 13 Mar 2003 01:14:37 -0000 1.59 @@ -320,13 +320,6 @@ =head1 C Methods -=head2 Cserver> - -Cserver> now resides in C. To use it -add: - - use Apache::ServerUtil (); - =head2 Crequest> Crequest> is deprecated. It's error-prone and hurts @@ -334,7 +327,7 @@ storage. For any location that uses Crequest> and uses -C<"modperl"> handler, you need to configure: +C, you need to configure: SetHandler modperl @@ -372,8 +365,7 @@ =head2 Cget_handlers> -Avalable via C. To get handlers for the server level, -mod_perl 2.0 code should use: +To get handlers for the server level, mod_perl 2.0 code should use: $s->get_handlers(...); @@ -381,10 +373,12 @@ Apache->server->get_handlers(...); +Cget_handlers> is avalable via +C>. + =head2 Cpush_handlers> -Avalable via C. To push handlers at the server level, -mod_perl 2.0 code should use: +To push handlers at the server level, mod_perl 2.0 code should use: $s->push_handlers(...); @@ -392,10 +386,12 @@ Apache->server->push_handlers(...); +Cpush_handlers> is avalable via +C>. + =head2 Cset_handlers> -Avalable via C. To set handlers at the server level, -mod_perl 2.0 code should use: +To set handlers at the server level, mod_perl 2.0 code should use: $s->set_handlers(...); @@ -403,6 +399,9 @@ Apache->server->set_handlers(...); +Cset_handlers> is avalable via +C>. + =head2 C C has been replaced with C, @@ -445,12 +444,12 @@ =head2 C<$Apache::Server::CWD> C<$Apache::Server::CWD> is deprecated and exists only in -C. +C>. =head2 C<$Apache::Server::AddPerlVersion> C<$Apache::Server::AddPerlVersion> is deprecated and exists only in -C. +C>. @@ -482,30 +481,21 @@ C<$r-Ecurrent_callback> is now simply a C and can be called for any of the phases, -including those where C<$r> simply doesn't exist. C -implements C<$r-Ecurrent_callback> for backwards compatibility. - -=head2 C<$r-Elookup_file> - -See the next item - -=head2 C<$r-Elookup_uri> - -C<$r-Elookup_file> and C<$r-Elookup_uri> didn't change their -functionality but moved into -C>. -Before using them, add: - - use Apache::SubRequest; +including those where C<$r> simply doesn't +exist. C> implements +C<$r-Ecurrent_callback> for backwards compatibility. =head2 C<$r-Eget_remote_host> -C<$r-Eget_remote_host> has been renamed and moved into the package -C>: +C is now invoked on the C>: use Apache::Connection; $r->connection->get_remote_host(); +C<$r-Eget_remote_host> is available through +C>. + =head2 C<$r-Econtent> See the next item. @@ -553,29 +543,36 @@ =back -Instead you should use C's C and similar -methods to do the parsing for you. See the C> -manpage. +For now you can use C or the code in +C> (it's slower). -XXX: ...when Apache::Request will be ported to 2.0. For now you can -use the code in C that implements these methods in -Perl. +META: when C will be ported to mod_perl 2.0, you will +have the fast C implementation of these functions. =head2 C<$r-Echdir_file> -C is not a thread-safe function, therefore -C<$r-Echdir_file> is gone from the API. +C cannot be used in the threaded environment, therefore +C<$r-Echdir_file> is not in the mod_perl 2.0 API. +For more information refer to: L. =head2 C<$r-Eis_main> C<$r-Eis_main> is not part of the mod_perl 2.0 API. Use Cmain> instead. +Refer to the +C> +manpage. + =head2 C<$r-Efinfo> -XXX: not implemented yet. To be implemented. C handles -that for now with: +Probably won't be implemented, because Apache 2.0's finfo +datastructure can't be mapped into the Perl finfo datastructure. + +C> handles that for +now with: sub finfo { my $r = shift; @@ -645,8 +642,7 @@ =head2 C<$r-Erequest> -Use Crequest>. - +Use Crequest|/__Apache___gt_request_>>. =head2 C<$r-Esend_fd> @@ -655,16 +651,16 @@ =head2 C<$r-Esend_fd_length> currently available only in the 1.0 compatibility layer. The problem -is that Apache has changed the API and the its functionality. See the -implementation in C. +is that Apache has changed the API and its functionality. See the +implementation in C>. XXX: needs a better resolution =head2 C<$r-Esend_http_header> This method is not needed in 2.0, though available in -C. 2.0 handlers only need to set the I -via C<$r-Econtent_type($type)>. +C>. 2.0 handlers only +need to set the I via C<$r-Econtent_type($type)>. =head2 C<$r-Eserver_root_relative> @@ -735,9 +731,10 @@ struct. It exists only in the request record struct. The new accessor in 2.0 API is C<$r-Eap_auth_type>. -C provides a back compatibility method, though it -relies on the availability of the global Crequest>, which -requires the configuration to have: +C> provides a back +compatibility method, though it relies on the availability of the +global Crequest>, which requires the configuration to +have: PerlOptions +GlobalRequest @@ -757,7 +754,8 @@ =head2 C and C The methods C and C were removed. See the back -compatibility implementation in the module C. +compatibility implementation in the module +C>. =head2 C @@ -765,7 +763,7 @@ API for this method anymore. See C, or the back compatibility implementation in the -module C. +module C>. With Perl v5.8.0 you can create anonymous temporary files: @@ -773,43 +771,6 @@ That is a literal C, not an undefined value. -=head2 C - -mtime() now belongs to the module L. - - -=head2 C - -This function now belongs to the module -C>. - -=head2 C - -This function now belongs to the module -C>. - -=head2 C - -This function now belongs to the module -C>. - -=head2 C - -This function now belongs to the module -C>. - -=head2 C - -This function now belongs to the module -C>. - -=head2 C - -This function now belongs to the module -C>. - - - @@ -840,8 +801,8 @@ =head2 C C currently is available only via -C until I is reworked to not require a -pool. +C> until +I is reworked to not require a pool. =head2 C @@ -1007,7 +968,8 @@ =head1 C -C currently exists only C and it does +C currently exists only +C> and it does nothing.