PHILADELPHIA — Infielder Wilson Valdez wound up as the winning pitcher early Thursday when the Philadelphia Phillies needed 19 innings to outlast the Cincinnati Reds 5-4.

PHILADELPHIA — Infielder Wilson Valdez wound up as the winning pitcher early Thursday when the Philadelphia Phillies needed 19 innings to outlast the Cincinnati Reds 5-4.

A dwindling crowd at Citizens Bank Park saw Raul Ibanez hit a bases-loaded sacrifice fly to decide the longest major league game of the season. It ended at 1:19 a.m. after 6 hours, 11 minutes.

Jimmy Rollins singled to open the 19th, Domonic Brown walked and Placido Polanco sacrificed. Ryan Howard was walked intentionally to load the bases. Ibanez hit a fly to deep center to win it.

Marlins 7, Giants 6, 12 innings

At San Francisco, Scott Cousins scored the winning run in a hard collision with catcher Buster Posey at home in the 12th inning, and Florida beat San Francisco after blowing a four-run lead in the ninth.

Emilio Bonifacio hit a short fly ball to right-center off Guillermo Mota (2-1) for the second out. Cousins tagged from third base, beating the throw from Nate Schierholtz and lowering his shoulder to slam into Posey for a clean — albeit cringing — hit. Posey lay dazed, writhing in pain and curling up in a ball for several minutes. He was helped off the field by two team trainers holding his left leg and looking stunned.

Brewers 6, Nationals 4

At Milwaukee, Zack Greinke hit a go-ahead homer and struck out 10 over seven innings, helping Milwaukee beat Washington for its sixth straight victory.

Braves 4, Pirates 2, 11 innings

At Pittsburgh, Brooks Conrad hit a pinch two-run homer in the 11th inning for Atlanta.

Diamondbacks 2, Rockies 1

At Denver, Ian Kennedy tossed eight crisp innings, center fielder Chris Young robbed Ty Wigginton of a tying homer and surging Arizona beat Colorado.

Astros 2, Dodgers 1

At Houston, J.R. Towles broke out of an 0-for-32 slump with three hits, the last an RBI single with two outs in the ninth that lifted Houston past Los Angeles.

Mets 7, Cubs 4, 7 innings

At Chicago, Dillon Gee recovered from a poor start to throw six solid innings and New York beat wild reliever Justin Berg and Chicago in a rain-shortened game.

Padres 3, Cardinals 1

At San Diego, Chase Headley doubled home the go-ahead run in the eighth inning, leading Mat Latos and San Diego over St. Louis, ending the Padres' season-worst losing streak at five games.

Red Sox 14, Indians 2

At Cleveland, Jon Lester coasted to his AL-leading seventh win and the Boston Red Sox bludgeoned Cleveland's Mitch Talbot for seven runs in the first inning on their way to a victory.

Yankees 7, Blue Jays 3

At New York, Andruw Jones hit a pair of two-run homers, Mark Teixeira also hit a two-run shot and Mariano Rivera made a milestone appearance in New York's victory over Toronto.

Orioles 9, Royals 2

At Baltimore, Adam Jones had two hits and two RBIs in an eight-run fourth inning, and Baltimore beat Kansas City for its fourth straight victory.

Rangers 2, White Sox 1

At Arlington, Texas, C.J. Wilson pitched into the seventh inning, and Ian Kinsler singled in the deciding run in the third inning in Texas' win.

Mariners 3, Twins 0

At Minneapolis, Erik Bedard threw six shutout innings, and Franklin Gutierrez hit his first home run of the season to help Seattle beat Minnesota.

Angels 4, Athletics 1

At Anaheim, Calif., Torii Hunter and Alberto Callaspo hit back-to-back homers and Ervin Santana allowed one run in six solid innings.