Repeated php tag in the validator generated file.
Fix some validation problems.
Some more fixes for the PHP validation.