Fix tests for PHP 5.3.3 and 5.3.10