The Phils couldn’t figure out Giant pitching again last night, dropping their second straight and the series to San Francisco. After losing 4-1 last night, the Phils have lost two in a row for the first time since June 4. In their last two games, the Phils have scored two runs, both of which are unearned.

Kendrick pitched pretty well in the game and was backed by 2 2/3 strong innings from the bullpen. In the seventh, some weak defense from Martinez and Howard helped turn a 2-0 lead for the Giants into a 4-0 lead. The offense didn’t do much of anything against Tim Lincecum and the San Francisco pen, struggling with runners in scoring position and plating the lone run they did score with the help of a two-out error by reliever Ramon Martinez in the seventh.

The Phillies are 65-39 on the year after losing to the San Francisco Giants 4-1 last night. The Giants take two of three in the series. The Phils remain in first place in the NL East, five games ahead of the Braves.

Kendrick got the start for the Phillies and went 6 1/3 innings, allowing four runs on six hits and two walks. Only three of the runs were earned. Two of the hits went for extra-bases, a double and a home run. He struck out four.

He set the Giants down in order in the first.

Pablo Sandoval led off the bottom of the first and hit a 1-0 pitch out to the opposite field, tight down the left field line, to put the Giants up 1-0. Aubrey Huff followed that with a walk, but Kendrick got the next three hitters behind him.

Kendrick struggles against lefties and the switch-hitter Sandoval takes him out of the yard for the first run of the game. Lefties are hitting 266/372/516 against Kendrick for the year. The Giants started three lefties and three switch-hitters in the game.

Andres Torres reached on a bunt single that was deflected by Kendrick with one out in the third. Ruiz threw him out trying to steal second before Jeff Keppinger grounded to third to end the frame.

Aubrey Huff doubled to right with two outs in the fourth. Nate Schierholtz was next and he singled to right-center, scoring Huff to make it 2-0. Brandon Crawford grounded to short to leave Schierholtz stranded.

Pitcher Tim Lincecum singled on a ball deflected by Kendrick with one out in the fifth. Kendrick struck Torres out looking for the second out and got Keppinger on a fly ball to center for the third.

He struck out Carlos Beltran and Sandoval in a 1-2-3 sixth.

He walked Schierholtz on four pitches to start the seventh. Crawford popped to Rollins at short for the first out before catcher Chris Stewart singled to left, moving Schierholtz to third. Rowand hit for Lincecum and chopped a ball to third that Martinez didn’t handle cleanly. He picked it up and threw high to first, where the ball went off of Howard’s glove. Howard went after that ball, but not particularly quickly. Schierholtz had scored easily on the play and Stewart raced around third trying to score as well. Howard finally got to the ball and threw home, but Stewart slid in safely to make it 4-0 with Rowand on second and one out. Perez came into the game and got Torres to pop to Utley for the second out. Lidge came in to pitch to the righty Keppinger and got Keppinger on a ground ball to third on a nice diving play and a strong throw by Martinez to end the frame.

Awful defense from Martinez and Howard on the ground ball by Rowand. Martinez may not have gotten two even if he had fielded the ball cleanly, but Howard could have handled the high throw when it came and was very slow going after the ball when it got away from him. Good base-running by Stewart to score from first on a ground ball to third.

First time on the year that Lidge had appeared in back-to-back games.

Kendrick got some bad defense in the inning, but you don’t want to walk the leadoff batter.

Stutes set the Giants down in order in the eighth with the lead cut to 4-1.

That’s two good outings for Stutes in a row in which he’s gone three scoreless frames, coming off of a stretch where he allowed runs in three of four appearances.

Herndon threw a 1-2-3 ninth.

The pen goes 2 2/3 innings in which they don’t allow a hit or a walk. Perez and Lidge get two outs in the seventh with one out and a man on second, preventing the Giants from getting more in the inning. Herndon threw 14 pitches in the game, everyone else was under ten. Lidge has thrown two days in a row.

The Phillies lineup against righty Tim Lincecum went (1) Rollins (2) Martinez (3) Utley (4) Howard (5) Victorino (6) Ibanez (7) Brown (8) Ruiz.

Rollins doubled to right to start the bottom of the first. Martinez bunted him to third with the first out, but Utley popped to short and Howard struck out swinging to end the inning.

Utley can’t bring the runner home from third with one out.

Down 1-0, the Phils went in order in the second.

Kendrick singled to right with one out in the third and Rollins walked behind him. It put men on first and second with one out for Martinez and he flew to left for the second out with Kendrick tagging and moving up to third. Utley struck out looking to leave runners on first and third.

Three men left on base for Utley through three innings. Kendrick is 4-for-16 at the plate with four singles and a walk (his .294 on-base percentage is better than Ibanez, Martinez or Valdez).

Down 2-0 in the fourth, Victorino drew a one-out walk but was left at first when Ibanez and Brown both popped out behind him.

Ruiz started the fifth with a walk, but Kendrick struck out trying to bunt him to second. Rollins flew to right on a nice sliding catch by Beltran for the second out before Martinez pushed Ruiz to second with another walk. Utley struck out swinging, leaving both runners stranded.

Two more left stranded gave Utley five through five innings.

Victorino reached on an infield single with one out in the sixth, but Ibanez and Brown both flew out behind him.

Down 4-0, Ruiz started the seventh with a double to center. With righty Ramon Ramirez on the mound, Mayberry hit for Lidge and struck out swinging for the first out. Rollins flew to left for the second out before Martinez reached on an error by the pitcher, putting men on first and third with two down. Lefty Jeremy Affeldt came in to face Utley and Utley doubled into the left field corner, scoring Ruiz (4-1) and moving Martinez to third. Howard grounded back to the pitcher to leave the runners at second and third.

Mayberry hits against the righty and strikes out for the first out. I assume Manuel didn’t use Gload cause the Phils were down by four runs and a homer only gets them within two.

The Phils went in order in the eighth. With the lefty Affeldt still on the mound after getting Ibanez to ground to the pitcher for the second out, Francisco hit for Brown. Righty Sergio Romo came into the game and got Francisco to fly to left to end the inning.

Righty Brian Wilson struck Ruiz out to start the bottom of the ninth. Gload hit for Herndon and doubled to right. Rollins was next and flew to right for the second out, with Gload tagging and moving up to third. Martinez struck out swinging to end the game.

Nice to see Gload running well enough to go from second to third on any fly ball.

Rollins was 1-for-4 with a double and a walk. 1-for-12 in the three-game set. He’s hitting 263/333/392 for the year. 2-for-his-last-28.

Martinez 0-for-3 with a walk and left four men on base. 1-for-11 with a walk in the series. 218/264/316 on the year, which really means you shouldn’t be starting that many games at third base or hitting second that often for a team trying to win the World Series.

Utley 1-for-4 with a double, an RBI and five men left on base. 3-for-12 with a double and a homer in the set. 281/374/478 for the year.

Howard 0-for-4 with a strikeout. 2-for-12 with a double and a home run in the series. 246/338/459 on the year.

Victorino 1-for-3 with a walk. 2-for-10 with two walks in the series. 258/361/387 in 37 plate appearances since his return. 299/374/510 for the year.

Ibanez 0-for-4 and left two men on base. 2-for-11 with a home run in the series. 245/287/418 for the year.

Brown 0-for-3 with a strikeout. 1-for-5 with a walk in the series. 247/338/399 for the year. Mayberry was 2-for-4 with a double and a home run in the set. 255/321/458 on the year.

Ruiz 1-for-3 with a double and a walk. 1-for-6 in the series. 265/370/373 for the season.

Halladay (12-4, 2.55) faces righty Kevin Correia (11-8, 4.38) tonight. Correia had a 2.91 ERA after his first eight starts of the season, but has thrown to 5.22 ERA over his last 14 starts while opponents have hit .294 against him. Two of his last three starts have been real bad. Both of them came at home — on the road this year he’s 9-2 with a 2.85 ERA and a 1.08 ratio. The Phillies have won 11 of the last 12 games that Halladay has started.

Polanco may be activated for Saturday’s game.