Author: caefer
Date: 2010-05-12 10:47:43 +0200 (Wed, 12 May 2010)
New Revision: 29419

Modified:
   
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceRemoteAbstract.class.php
Log:
return plausible inode protection mode (readable)

Modified: 
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceRemoteAbstract.class.php
===================================================================
--- 
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceRemoteAbstract.class.php
  2010-05-12 07:36:59 UTC (rev 29418)
+++ 
plugins/sfImageTransformExtraPlugin/trunk/lib/source/sfImageSourceRemoteAbstract.class.php
  2010-05-12 08:47:43 UTC (rev 29419)
@@ -46,6 +46,7 @@
    * ATTENTION! stat() does not work with http streams but is only needed 
because
    * it is called internally by file_exists() which is used by sfImage. 
Returning
    * an empty array is sufficient to this call.
+   * This one is also called by is_readable() which checks the inode 
protection mode.
    *
    * @param string $path
    * @param int $flags
@@ -53,6 +54,8 @@
    */
   public function url_stat($path , $flags)
   {
-    return array();
+    return array(
+      'mode' => 0555
+    );
   }
 }

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to