浏览代码

added check for php file

jimmy1993k 11 年之前
父节点
当前提交
bcc3fb33d7
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      Service/GearmanCacheWrapper.php

+ 7 - 1
Service/GearmanCacheWrapper.php

@@ -261,7 +261,13 @@ class GearmanCacheWrapper
          * Every file found is parsed
          */
         foreach ($finder as $file) {
-
+            
+			/**
+			 * Check if the file is a php file else go to next file
+			 */
+			if( strtolower( $file->getExtension() ) != 'php')
+				continue;
+				
             /**
              * File is accepted to be parsed
              */