PHILADELPHIA (AP) — Brad Miller doubled with one out in the 10th inning to rescue the Phillies’ beleaguered bullpen, giving Philadelphia a 4-3 win over the San Diego Padres on Friday night.

The Phillies blew a 3-0 lead in the ninth inning — their 22nd blown save of the season and eighth in nine games.

READ MORE: Man Cleaning Gun, Shoots And Kills 22-Year-Old Girlfriend In Bustleton, Philadelphia Police Say

Jose Alvarado got the final out of the eighth in relief of Zack Wheeler but allowed three of the first four batters to reach in the ninth, including an RBI double by Fernando Tatis Jr. Ranger Suarez (4-2) came in and allowed a two-run double to Jurickson Profar.

Suarez was better in the 10th, retiring all three batters. That set up Miller, who drove a slider from Austin Adams (2-2) deep to right-center with runners on first and second and one out. Miller rounded the bases as if it were a homer, but the ball bounced off the wall. It was good enough to score Andrew McCutchen from second.

Wheeler pitched 7 2/3 scoreless innings and Didi Gregorius homered in his return to the Philadelphia lineup. Wheeler allowed four hits with nine strikeouts and no walks.

Tatis, the NL’s starting shortstop in the upcoming All-Star Game, doubled twice for the Padres, who lost for the third time in their past 14 games.

Gregorius missed the last 50 games with right elbow inflammation and pseudogout. He was solid at shortstop and gave Philadelphia a 3-0 lead with a one-out homer in the fifth, driving a 2-1, 86 mph changeup from Chris Paddack over the wall in right.

Paddack gave up three runs on four hits with five strikeouts and a walk in seven innings.

READ MORE: EXCLUSIVE: Body Of Missing 26-Year-Old Casey Johnston Recovered, Officials Say

Wheeler struck out pinch-hitter Wil Myers for the second out in the eighth and was pulled by manager Joe Girardi, who was loudly booed. Philly fans jeered Girardi again when he replaced Alvarado with Suarez.

The first pitch was just 14 hours after the Padres arrived in Philadelphia following Thursday night’s 5-4 loss at Cincinnati that included a 52-minute rain delay. Manager Jayce Tingler said the Padres cut short their normal pregame activities, only doing some light field work and hitting in the cage.

TRAINER’S ROOM

Padres: Tingler said both LHP Blake Snell (illness) and RHP Daniel Lamet (right forearm inflammation) continue to make progress. Snell could start Sunday against Philadelphia while Lament is eyeing a return after the All-Star break.

Phillies: To make room for Gregorius, Philadelphia sent Nick Maton to Triple-A Lehigh Valley.

UP NEXT

MORE NEWS: Colts' Carson Wentz Choosing Rest, Rehab For Foot Injury, Remains Out Indefinitely

Padres RHP Yu Darvish (7-2, 2.44 ERA) is scheduled to face Philadelphia RHP Zach Eflin (2-6, 4.20) as the series continues Saturday night.