You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-cvs@perl.apache.org by st...@apache.org on 2004/11/23 17:52:21 UTC
svn commit: r106312 - /perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod
Author: stas
Date: Tue Nov 23 08:52:19 2004
New Revision: 106312
Modified:
perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod
Log:
one needs to update $r->finfo when changing $r->filename
Modified: perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod
Url: http://svn.apache.org/viewcvs/perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod?view=diff&rev=106312&p1=perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod&r1=106311&p2=perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod&r2=106312
==============================================================================
--- perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod (original)
+++ perl/modperl/docs/trunk/src/docs/2.0/api/Apache/RequestRec.pod Tue Nov 23 08:52:19 2004
@@ -605,6 +605,19 @@
=back
+Note that if you change the filename and expect Apache to serve it,
+you need to update its C<stat> record, like so:
+
+ use Apache::RequestRec ();
+ use APR::Finfo ();
+ use APR::Const -compile => qw(FINFO_NORM);
+ $r->filename($newfile);
+ $r->finfo(APR::Finfo::stat($newfile, APR::FINFO_NORM, $r->pool));
+
+if you don't, Apache will still try to use the previously cached
+information about the previously set value of the filename.
+
+
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org