Closed wbean1 closed 8 years ago
We have created an issue in Pivotal Tracker to manage this:
https://www.pivotaltracker.com/story/show/128861119
The labels on this github issue will be updated when the story is started.
@wbean1 What you're proposing, as we understand it, sounds very similar to what @dmikusa-pivotal did in a recent PR to binary-builder to add optional oracle support to built PHP binaries: https://github.com/cloudfoundry/binary-builder/pull/13
Would you be open to submitting a pull request in a similar vein if that kind of binary-builder support is what you're looking for?
For what it's worth, I think this would actually be easier than the Oracle PR. This one doesn't depend on proprietary libraries, it uses FreeTDS which is LGPL software, so it should be easier to package up and no conditional logic.
Off the top of my head, I think you'd just need to...
1.) Edit the ./configure
options for PHP to enable the mssql extension here and here.
2.) Have it install the FreeTDS packages here and here.
3.) Have it copy the required FreeTDS shared libraries here and here.
Not sure if that's exactly everything, but it should give you a place to start if you're willing to work on a PR.
Thanks for the guidance. Just hearing that its not an absurd request that'd be shot down is encouraging. I'll try to get a PR together in the next week or so.
In the meantime, do you object to us closing this issue?
nope, that's fine
Feel free to close if this is an outlandishly complex request... it very well might be.
RHEL7 & Ubuntu 14.4 both supply convenience packages for using mssql through freetds.
Ubuntu has
php5-sybase
which installs:RHEL has
php-mssql
which installs:It'd be super fantastic if similar support could be added to the php-buildpack. Alternatively, any guidance on how one might fork the https://github.com/cloudfoundry/binary-builder project, adjust the recipes in there, and create these additional binaries would be appreciated...
I understand that mssql support was removed in PHP7, and that microsoft is working on this thing as the future... https://github.com/Azure/msphpsql. That thing, however, does not look any easier to integrate into a buildpack fork than freetds, unfortunately.