SAN FRANCISCO (AP) -- Madison Bumgarner turned in a strong pitching performance at home for the first time in a while, and the San Francisco Giants still found a way to lose.
Chase Utley was hit by a pitch from Javier Lopez with the bases loaded in the top of the 10th inning to help the Philadelphia Phillies beat the Giants 5-3 on Friday night.
The game turned when the usually reliable San Francisco bullpen took over for Bumgarner, who threw seven strong innings for his first quality start at home since June 10, a span of seven games. He allowed one run and four hits, striking out nine without a walk.
"There's no question this is disheartening," Giants manager Bruce Bochy said. "Bumgarner pitched a great game, but we couldn't get another run in."
Cody Asche, who doubled off Santiago Casilla (1-3) to open the 10th, hit a two-run homer in the eighth to tie it. It was the first home run allowed by Jeremy Affeldt this season.
Ken Giles (2-0) pitched two scoreless innings for the win. Jonathan Papelbon worked the 10th for his 28th save in 31 chances.
Bumgarner retired the first 10 hitters he faced, five on strikeouts, before allowing back-to-back hits by Jimmy Rollins and Utley.
"We keep saying we have to grind it out and go get them tomorrow," Bumgarner said. "But that's all we can really do. We have to get hot and finish strong."
The Giants took a 3-0 lead in the fourth when Michael Morse hit his first home run in August, a three-run shot that carried over the fence in left field.
"Those were some good at-bats from Morse," Bochy said. "We haven't seen a lot of that."
Pablo Sandoval had three hits, but the Giants lost their sixth in seven games.
The Giants got their leadoff hitter on in five innings against Phillies starter Cole Hamels, and were only retired in order once -- by Papelbon.
Hamels was able to avoid trouble with the exception of the fourth. Buster Posey led off with a single and Sandoval hit a ground-rule double ahead of Morse.
Marlon Byrd hit his 23rd homer for the Phillies.
Giants: 1B Brandon Belt will get another opinion on his concussion when the Giants visit Chicago next week. Belt will see concussion specialist Michael Collins in Pittsburgh.
Giants: RHP Tim Hudson (8-9, 2.81) pitches Saturday. The Giants have lost seven of his last 10 starts. Hudson has started 30 games against the Phillies and is 11-10 with a 3.60 ERA against them.
LESSONS ON THE BASES
The Giants had three runners thrown out on the bases, two trying to score.
Angel Pagan, who led off the seventh with a double, was about halfway to third before Hamels noticed him and trapped him in a rundown. Pagan was tagged out at second.
Pinch-runner Gregor Blanco tried to score from third on Brandon Crawford's safety squeeze in the sixth. Hamels fielded the ball and ran down Blanco near third.
Giants third base coach Tim Flannery sent Sandoval home with two outs in the eighth on Joe Panik's single to right. Byrd's throw to Carlos Ruiz was there in plenty of time.
A PLACE TO ROAM
Morse's home run in the fourth traveled about 15 feet less than the 400-foot drive he hit to right-center in the second. Morse's towering fly to the roomy area of the ballpark known as Triples Alley allowed Byrd plenty of time to run under it.
Copyright 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.