PHOENIX -- Giving up two runs after six shutout innings left Cole Hamels fuming Wednesday.
"When you give us some runs you want to put up some zeros right away," said Hamels, who pitched eight strong innings in the Philadelphia Phillies' 7-2 win over the Arizona Diamondbacks. "That's what I was able to do."
Hamels (3-1) gave up a leadoff double to Willie Bloomquist in the first then retired the next 18 batters before giving up two runs on three hits, a walk and an error in the seventh.
"In the seventh, he got into some trouble but he got out of it," Phillies manager Charlie Manuel said. "It looked like he lost his command there for a while but he got it back."
The left-hander allowed four hits overall. He struck out seven, including his final three hitters.
"When you're about to go out there and just plug away, have some quick at-bats, you do get into a comfortable rhythm," Hamels said. "You want to go out there and have great inning after great inning."
Hamels' single capped a five-run sixth inning. The Phillies won consecutive games to salvage a 5-5 record on their now-completed road trip. Philadelphia also won its first road series of the season.
"We're going home 5 and 5, which is better than 4 and 6," Manuel said. "The old saying is if you go .500 on the road and win at home you'll be in the playoffs. I'm not sure I buy it, but that's what they say."
The Diamondbacks have lost seven of nine. Trevor Cahill (1-2) gave up four runs and six hits in 5 1/3 innings.
"We have some really good hitters," Hamels said. "They just haven't been able to square it up."
Philadelphia took a 1-0 lead in the first when Polanco singled, went to second on a passed ball and scored on a sharp single by Hunter Pence.
The Phillies broke it open in the sixth. Juan Pierre singled, Polanco walked and Cahill's second wild pitch of the game scored a run. Pence hit an RBI single that finished Cahill, Ruiz had an RBI single off Craig Breslow and Hamels looped a two-run single for a 6-0 lead.
"Our story today was we were unable to stop that sixth inning," said Arizona manager Kirk Gibson. "Trevor got two guys on and Breslow came in and couldn't get it cut off."
Consecutive one-out singles in the seventh by Aaron Hill, Justin Upton and Jason Kubel ended Hamels' shutout bid. Hamels walked Cody Ransom to reload the bases and Paul Goldschmidt hit what appeared to be an inning-ending, double-play grounder to shortstop, but second baseman Pete Orr dropped a toss and let a run score.
Hamels induced another grounder off the bat of A.J. Pollock, which did lead to a double play.
"He's throwing 2-0 changeups and locating," Gibson said. "That's pretty tough."
Phillies 1B Ty Wigginton had a pinch-hit single in the sixth to extend his hitting streak to 11 games. ... Kubel has hit safely in nine straight, and Hill has reached base in 14 games in a row. ... Phillies RHP Michael Schwimer, recalled from Triple-A Lehigh Valley when Michael Stutes was placed on the 15-day disabled list, made his season debut in the ninth. ... The Diamondbacks failed to hit a home run at home against the Phillies for the first time in their past 18 games. ... Phillies SS Jimmy Rollins didn't start but came on as a defensive replacement in the bottom of the eighth. Rollins is in the midst of a 3-for-33 slump and is hitless in his past seven at-bats. ... The Chase Field roof was closed for just the second time in 13 home dates with hazy, overcast skies and 90-degree temperatures outside. ... After a day off Thursday, LHP Joe Saunders will take the mound for the Diamondbacks in Miami and face RHP Carlos Zambrano. Saunders is 1-1 with a 1.29 ERA, having allowed three earned runs -- four overall -- on 21 innings across his first three starts. ... The Phillies also have Thursday off and will send RHP Roy Halladay to the mound against Chicago LHP Paul Maholm at home Friday. Halladay has allowed five runs in 30 innings over four starts for Philadelphia.