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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to