With two on and two out in the seventh inning, Bonds crushed a 3-0 offering from Jose Mesa some 477 feet into McCovey Cove beyond the right field fence, giving San Francisco a commanding 7-1 lead. Bonds is responsible for 25 of the Giants' 29 "splash" homers at Pacific Bell Park. The single-season home run king moved within 12 of his godfather, Willie Mays, for third place on the all-time list.
Foppert lasted just 5 1/3 innings but allowed only a run and two hits. The rookie right-hander, who also doubled and scored a run, walked five and struck out four.
Randy Wolf (11-7) was ineffective for Philadelphia, surrendering four runs and six hits in five innings. Still seeking a career-high 12th win, Wolf allowed two walks and five strikeouts.
Mesa, who has lost his closer's role in Philadelphia, started the seventh and retired J.T. Snow before walking Cruz. Neifi Perez hit a grounder to short that erased Cruz, but the Phillies were unable to turn the double play, prolonging the inning. Bonds stepped in and nearly was hit by Mesa's first two pitches before launching the fourth offering into the water for his major league-leading 35th homer.
Galarraga gave San Francisco a 1-0 lead in the second inning with a two-out blast, his 395th career homer.
The Phillies threatened to tie it in the third as Wolf hit a one-out double to left-center field and after Marlon Byrd popped out, moved up on a wild pitch. But Foppert fanned Placido Polanco to escape unscathed.
Cody Ransom led off the bottom of the inning with a two-base hit and scored on Cruz's one-out double to left. After Perez flied out, Marquis Grissom drove in Cruz with a double to increase the Giants' advantage to 3-0.
Ricky Ledee got Philadelphia on the scoreboard with an RBI single in the fourth, but Perez doubled in Foppert to restore San Francisco's three-run cushion. After Ledee's single, the Phillies were limited to one hit over the final 5 1/3 innings - a two-out double by Tomas Perez in the ninth.
Snow and Cruz stroked RBI singles off Carlos Silva in the eighth to cap the scoring.