Barry Zito walked off the AT&T Park mound Friday to a standing ovation from a crowd that has alternately booed him and called for his ouster for much of the previous five seasons.

It wasn't even the most unexpected moment of the night, and it turned out to be rather premature.

Zito, a .103 career hitter, drew a bases-loaded walk in the third inning of an 8-6 win over the A's. The Giants twice scored on walks in the four-run third inning and added runs on a double and sacrifice fly. They would need nearly every bit of the early cushion.

Zito walked off the mound in the sixth inning with an 8-3 lead and a runner on first. Minutes later, it was a two-run game. Steve Edlefsen gave up two singles to load the bases, and Josh Donaldson cleared them with a double into the left-center field gap.

Clay Hensley got the Giants out of the jam, and Jeremy Affeldt and Sergio Romo bridged the gap to Santiago Casilla. Against his former team, Casilla picked up his 10th save in 11 chances, clinching the third win for Zito, who left to a rare raucous ovation.

"There were some boos out there, but I'm sure they were probably straggling A's fans," Zito said. "It's a big stage out there. It's been good to go out there and fight."

Zito wanted to fight longer and wasn't happy about being pulled with one out and one on in the sixth. Manager Bruce Bochy said he later regretted the move, and it backfired immediately. But the Giants had already

built too big a lead, a rarity for them at home this season.