Everything was fine on my development box (PHP 5.4.6-1ubuntu1.2), and the validation passed.
The PHP version on the live server where the validation fails is 5.3.2-1ubuntu4.19
I'll see if I can get the shared hosting updated to a more recent version of PHP.
Thanks for your help :-)