pathinfo doesn't get dot from extension