refined requirement of PATHINFO_FILENAME (doesn't work, though)