perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject [patch] lib/Apache/compat.pm (Apache::File)
Date Sun, 01 Dec 2002 03:53:25 GMT
Should we explicitly alias the Apache::File methods to their new 
locations? In case somebody was explicitly making a call via 
Apache::File->method($r, ...) class method?

Index: lib/Apache/compat.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/compat.pm,v
retrieving revision 1.71
diff -u -r1.71 compat.pm
--- lib/Apache/compat.pm        23 Nov 2002 22:35:06 -0000      1.71
+++ lib/Apache/compat.pm        1 Dec 2002 03:51:49 -0000
@@ -414,15 +414,15 @@
  }

  # the following functions now live in Apache::Response
-# * discard_request_body
-# * meets_conditions
-# * set_content_length
-# * set_etag
-# * set_last_modified
-# * update_mtime
+*discard_request_body = \&Apache::Response::discard_request_body;
+*meets_conditions     = \&Apache::Response::meets_conditions;
+*set_content_length   = \&Apache::Response::set_content_length;
+*set_etag             = \&Apache::Response::set_etag;
+*set_last_modified    = \&Apache::Response::set_last_modified;
+*update_mtime         = \&Apache::Response::update_mtime;

  # the following functions now live in Apache::RequestRec
-# * mtime
+*mtime                = \&Apache::RequestRec::mtime;

  package Apache::Util;




__________________________________________________________________
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