PHP samples fixes