detect uppercase *.PHP extension
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPParserAction.java
index 32015b0..b40c10b 100644 (file)
@@ -66,7 +66,7 @@ public class PHPParserAction extends TextEditorAction {
         // should throw an exception
         return;
       }
-      String name = fileToParse.getName();
+      String name = fileToParse.getName().toLowerCase();
       for (int i = 0; i<EXTENSIONS.length; i++) {
         if (name.endsWith(EXTENSIONS[i])) {
           phpFlag = true;  // php file extension