Backport to PHP 5.3 and updated readme