fix php 5.2 heredoc syntax issue