James McCann hit a solo homer in the eighth inning, seven Arizona pitchers combined for a shutout and the Diamondbacks avoided a three-game sweep by beating the Philadelphia Phillies 1-0 on Wednesday. Arizona — which ended a three-game losing streak — is now a half-game ahead of the San Diego Padres for the third and final NL wild card with 21 games remaining on its schedule. The Phillies saw their six-game winning streak end.