fix timeout issue.
dropped support for PHP4