thrift: forking to thrift-php with php fixes

Following up on
mxcl/homebrew#21865
mxcl/homebrew#15937
mxcl/homebrew#23315

I’ve forked thrift formular to thrift-php with php specific fixes. Thrift php support has been broken on homebrew for quite a while, and I don’t see them accepting php fixes anytime soon.

Also I'm wondering if there is a better way to detect the correct version of php installed? Or any other improvements that can be made to the formular ?