The incident happened just before 2:00 a.m. at 69th and Walnut Streets.
Upper Darby Police Superintendent Mike Chitwood tells Action News that two Philadelphia police officers noticed a suspicious vehicle at a closed gas station at 63rd and Vine streets.
When the officers pulled into the gas station lot, the car took off.
Police followed the vehicle into Upper Darby and briefly lost the vehicle. However, they found the car at 69th and Walnut streets.
The passenger, who was out of the vehicle, took off running. While fleeing he turned and shot one bullet at the officers.
The officers took cover and the suspect got away. The officers were not hurt and never returned fire.
Other officers later saw the shooter walking near Cobbs Creek and took him into custody. They also recovered the weapon involved.
The suspect is being held on $500,000 bail.
The search continues for the driver.
Police say the suspects fled because the shooter had a probation violation from a gun conviction.