SAN DIEGO (AP) _ Barry Bonds hit his 65th and 66th home runs Sunday, leaving him four shy of the record Mark McGwire set three years ago.

The San Francisco slugger hit both homers off San Diego rookie Jason Middlebrook, tying him with Sammy Sosa for the second most home runs in a season.

Bonds has 34 homers on the road, giving him sole possession of the major league record. He started the day tied with Babe Ruth (1927) and McGwire (1998) with 32 road homers.

Bonds hit a solo shot off the permanent wall in straightaway center on a 2-1 count with two outs in the second inning, giving San Francisco a 4-0 lead.

He then hit a high, arching shot on a 2-0 pitch _ a 91-mph fastball _ that barely cleared the fence in left for a 7-1 lead. Bonds raised both arms in the air as he stepped on home plate.

The homers came in San Francisco's 150th game. McGwire hit his 65th in the Cardinals' 157th game in 1998, and his 66th in St. Louis' 161st.

Sosa hit his 66th and final homer of 1998 in the Chicago Cubs' 160th game.

San Francisco has 12 games left.

Bonds also broke Ruth's major league record for most homers over two seasons by a left-handed batter. Bonds hit 49 home runs in 2000 to give him 115 in the past two seasons _ one more than Ruth had in 1927-28.

Bonds has nine homers against San Diego this season and 61 in his career, giving him the most ever by an opponent against San Diego.

With 560 career homers, Bonds is three shy of matching Reggie Jackson for seventh place all-time.

Bonds has nine multihomer games this season and 55 in his career, tying him with Jimmie Fox for fifth all-time.