[releng] fix php directory close statements