Ok,
I have tried a 100 things and i can not get my so file to interface with php using swig. I can generate the files, then i had to compile zend and link with that to make the so but it keeps seg faulting on load now.
Can some one please walk me though how to use swig to generate a php interface for a c++ so as the one on there site is terrible.