I decided to just give the extension in ext/sybase a try before applying any patches.
cd ext/sybase
phpize && configure && make && sudo make install
After that it was a simple matter of adding a sybase.ini file to /etc/php5/conf.d with the contents
extension=sybase.so
I then restarted apache2 and it works :)
I'm still a bit confused as to why the php5-sybase package installs the mssql.so module, and the php5-mssql package is a virtual for php5-sybase. But it is working for me now, and hopefully the people who need this info can find it here.
Solution:
Ok... so I installed the php5 source package
apt-get source php5
I decided to just give the extension in ext/sybase a try before applying any patches.
cd ext/sybase
phpize && configure && make && sudo make install
After that it was a simple matter of adding a sybase.ini file to /etc/php5/conf.d with the contents
extension=sybase.so
I then restarted apache2 and it works :)
I'm still a bit confused as to why the php5-sybase package installs the mssql.so module, and the php5-mssql package is a virtual for php5-sybase. But it is working for me now, and hopefully the people who need this info can find it here.
Thanks again for the help Ondřej and Chuck!
Paul