resolve php 5.3 pathinfo() issue