Search Philadelphia City Code and read section 10. Quail are not specifically named as prohibited, but any farm animal that creates a nuisance is prohibited.
If you are interested in helping us legalize chickens in Philadelphia, please like Philadelphia Backyard Chickens on facebook. Throughout November we will be building support, finding out our connections, running some campaign activities and then approaching city council and the mayor in December.