兼容PHP5.2