PHILADELPHIA - The cheers started when Tony Gwynn Jr. walked to the batter's box, grew louder when he was introduced as a pinch-hitter and turned into a standing ovation when catcher Jarrod Saltalamacchia went to the mound.

On a night when the Philadelphia Phillies beat the Miami Marlins 7-4, the fans' reaction to Gwynn trumped the scoreboard. Gwynn grounded out in the eighth inning Tuesday night in his first at-bat since his father, Hall of Famer Tony Gwynn, died last week. Though he's batting just .153 in his first season in Philadelphia, fans showed the younger Gwynn some love.

"That's why guys who play here like to play here," Gwynn said. "When things are going well, or regardless of whether they're going bad or good, I think the fans stay behind us. Much appreciated by the Gwynn family."

Saltalamacchia prolonged the ovation by purposely going to the mound, a move Phillies manager Ryne Sandberg called "classy."

"I don't know what it must be like to lose a father, especially a guy who brought so much to this game," Saltalamacchia said.

Marlon Byrd hit a two-run homer and David Buchanan threw five effective innings to help the Phillies snap a three-game losing streak.

Buchanan (4-3) allowed two runs and six hits. The rookie right-hander struck out Marcell Ozuna on a 3-2 changeup with two runners on and two outs in the fifth, preserving a 4-2 lead. He pumped his fist and shouted as he walked off the mound.

"I was pumped getting through that inning and not letting it escalate," Buchanan said.

Miami's Garrett Jones hit a two-run homer off B.J. Rosenberg in the eighth. Jonathan Papelbon tossed a scoreless ninth for his 18th save in 20 tries.

Andrew Heaney (0-2) gave up five runs and four hits in five-plus innings in his second career start for the Marlins.

After being shut out Monday for the 10th time this season and seventh time in their last 25 home games, the Phillies jumped ahead 3-0 in the first inning.

Jimmy Rollins was hit by a pitch leading off and Chase Utley walked one out later. On a double steal, Saltalamacchia's throw to third bounced away for an error and Rollins scored to snap the team's 21-inning scoreless streak at Citizens Bank Park, dating to June 15.

After Ryan Howard struck out, Byrd hit a 419-foot shot out to left-centre to make it 3-0.

"He's a strong guy and he works very hard," Sandberg said. "Byrdie is one of the first at the ballpark and he prepares. He loves to hit and he's strong. He stays in great shape and he keeps his power stroke. He's a threat every time he comes up."

Cody Asche lined a two-run double in the sixth and scored on Bryan Morris' wild pitch for a 7-2 lead.

Rollins had two steals to move into a tie with Hall of Famer Ed Delahanty for second place on the club's career list with 438.

Rollins finished 2 for 2 and also walked. It was his first multi-hit game since May 30, even though he's hit safely in 20 of his last 22 games, including a 15-game hitting streak.

The Marlins got a run in the second when Utley dropped Ed Lucas' infield fly with the bases loaded, allowing Saltalamacchia to score from third. Utley dropped another pop-up in the eighth, but it turned into a fielder's choice.

Ben Revere hit a triple and scored on a wild pitch to give the Phillies a 4-1 lead in the second.

After Giancarlo Stanton's second double of the game put runners on second and third in the fifth, Casey McGehee's sacrifice fly cut it to 4-2.

NOTES: The Phillies signed OF Grady Sizemore to a minor league contract. The three-time All-Star was released by Boston on June 18. "We needed more production from our outfield," general manager Ruben Amaro Jr. said. Sizemore is expected to join the Phillies after playing in Triple-A. ... Injured Phillies ace Cliff Lee said he felt fine after a bullpen session. He's hoping to return before the All-Star break. ... Marlins SS Adeiny Hechavarria had an MRI that revealed a right triceps strain. He could land on the disabled list. ... Miami had four wild pitches, tying a club record. ... A.J. Burnett (5-6, 3.89) goes for the Phillies on Wednesday against Henderson Alvarez (4-3, 2.39).