You shouldn't have to. I am running 6.40.5 here and there's no need to call ph_setgravity.