Melky Cabrera knocked in the game-winning run in the bottom of the 11th inning and the San Francisco Giants slipped past the Philadelphia Phillies, 1-0, in the finale of a three-game set at AT&T Park.

With Antonio Bastardo (0-1) on the mound, Brandon Belt smacked a one-out single and Angel Pagan followed with a hard-hit ball to third that could not be handled by Ty Wigginton, giving the Giants two runners on base.

Cabrera then slapped a ball over the head of Freddy Galvis at second and into right field. Hunter Pence fielded the ball but his throw home was too late, as Belt crossed the plate with the winning run.

Clay Hensley (1-0) got pinch-hitter John Mayberry to ground out with a runner on third in the top of the 11th to record the win.

Hensley may have gotten the win, but the real star for the Giants was starter Matt Cain, who tossed nine scoreless innings while giving up two hits and one walk while fanning four.

Cain's performance was exactly what the Giants needed, as the team revealed that closer Brian Wilson will undergo his second Tommy John surgery on Thursday.

Wilson, 30, last pitched against the Colorado Rockies last Thursday. He was erratic with his control but recorded a save. One day later, he informed the Giants' medical staff of physical discomfort in the elbow.

In two appearances this season, Wilson had one save and a 9.00 ERA.

Cabrera finished with three hits for San Francisco, which took two-of-three in this series.

Cliff Lee was just as good as Cain, if not better. Lee threw 10 scoreless innings while scattering seven hits and striking out seven.

Lee became the first Phillies starting pitcher to throw more than nine innings in a game since Terry Mullholland in May of 1993, and also became the first Phillies hurler to toss 10 scoreless innings since Steve Carlton in 1981.

Carlos Ruiz collected the only extra-base hit of the game with a double in the top of the 11th for Philadelphia, which fell to 5-7 on the season and into last place in the N.L. East.

The Giants threatened in their first at-bat as Pagan and Cabrera ripped back- to-back singles, but Lee recovered to get Pablo Sandoval to fly out, and Buster Posey grounded into a 5-4-3 double play to keep the game scoreless.

Philadelphia put two runners on in the fifth when Wigginton singled and Ruiz walked, but Cain got out of trouble by getting Galvis to ground into an inning-ending 6-4-3 double play.

Brett Pill led off the home fifth with a ground-rule double, but Lee then got the next three hitters to groundout to shortstop to end the frame.

Game Notes

The Phillies fell to 4-3 over their last seven games in San Francisco...Lee has four wins and one no-decision in five career starts against the Giants and has allowed one earned run or fewer in each of those starts...Sandoval extended his hitting streak to 12 straight games...Galvis extended his hitting streak to eight straight games...Philadelphia turned four double plays...Philadelphia went 0-for-4 with runners in scoring position and stranded four, while the Giants went 1-for-6 and left six men on base.