소스 검색

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
              */