Update to use it in PHP5.3 project