Improve the compatibility in low version of PHP.