Melky Cabrera hit an RBI single in the 11th inning and the San Francisco Giants beat the Philadelphia Phillies 1-0 on Wednesday, ending a thrilling pitchers' duel that seemed as if it might go on all night.

Cliff Lee threw 10 scoreless innings for the Phillies and Matt Cain pitched nine for the Giants.

Cabrera came through against Antonio Bastardo (0-1), who allowed Brandon Belt's one-out single up the middle. Belt then advanced when third baseman Ty Wigginton couldn't control Angel Pagan's grounder.

The game lasted just 2 hours, 27 minutes. And it left Lee still searching for his first win of the season after three starts.

(Copyright 2012 by The Associated Press.  All Rights Reserved.)