Support for PHP 5.3.
Add test.