Adrian Gonzalez homered and drove in three runs and Chase Headley put together a four-hit afternoon as San Diego beat the Philadelphia Phillies 6-5 on pinch-hitter Oscar Salazar's two-out infield single in the 10th inning, part of a 16-hit outburst by the Padres.