Added support for PHP 5.3

Added support for library and unit tests.