A 7-year-old boy and a 24-year-old woman were wounded Wednesday night when the car they were in came under fire in West Philadelphia, police said. Both were in stable condition and are expected to recover, police said.

Police said the boy and woman were in a car about 9:30 p.m. when it was peppered with bullets at 57th Street and Girard Avenue. The boy was shot in a foot. The woman suffered gunshot wounds to a shoulder and knee.

After the shooting, the woman drove about four miles to a relative’s home on the 2100 block of Van Pelt Street in North Philadelphia, police said. Someone there took the pair to Temple University Hospital in another vehicle.

Police did not immediately spell out the relationship between the victims, whose names were not released. Chief Inspector Scott Small said investigators were trying to determine if the woman was the intended target of the shooting.