Pārlūkot izejas kodu

added check for php file

jimmy1993k 11 gadi atpakaļ
vecāks
revīzija
bcc3fb33d7
1 mainītis faili ar 7 papildinājumiem un 1 dzēšanām
  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
              */