getExtension does not work for php lower than 5.3.6 - need to test on live server