Melky Cabrera hit an RBI single in the 11th inning and the Giants beat the 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.