Explorar o código

added check for php file

jimmy1993k %!s(int64=11) %!d(string=hai) anos
pai
achega
bcc3fb33d7
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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
              */