make tests pass on PHP 5.3.3 and 5.3