trying to fix php debug pattern