Fix minor PHP 5.3 bug #187