Fork for PHP 5.3.x version

Here is version for PHP 5.3.x