git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20619 44c647ce-9c0f-0410-b52a-842ac1e357ba
@@ -173,6 +173,11 @@ class Zend_Loader
*/
public static function isReadable($filename)
{
+ // Phar occasionally fails when using fopen()
+ if (strpos($filename, 'phar://') !== false) {
+ return is_readable($filename);
+ }
+
if (!$fh = @fopen($filename, 'r', true)) {
return false;
}