fix php issues on the samples