Skip to Content.
Sympa Menu

freetds - Re: [freetds] what are the best build-options for BOTH mssql AND sybase connectivity in same php module

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] what are the best build-options for BOTH mssql AND sybase connectivity in same php module
  • Date: Mon, 3 Jun 2013 18:57:36 -0400

On Fri, 31 May 2013 12:58:36 +0200
Knut Behrends <knb AT gfz-potsdam.de> wrote:

> In the web server, the php 5.2.17 that I've been using for a few years
> had the native client sybase built-int --sybase-ct build option
> /opt/sybase/OCS-15_0 . That works well. MSSQL support is a new
> requirement to me.
>
> Can I run a "native client" for sybase, and a freetds-based client for
> MSSQL in the same php .so module? Is that even possible?

This is too much of a PHP question for me to answer definitively. I
don't know how PHP segregates its modules. If it simply executes
dlopen(), the answer boils down to library symbols.

You can use Sybase's library and FreeTDS's library as long as they
don't provide the same symbols. You're safe, for instance, to load
Sybase's ct-lib in one module and FreeTDS's db-lib (or ODBC) in
another. But loading two incompatible versions of ct-lib is begging
for trouble even if it accidentally works.

HTH.

--jkl




  • Re: [freetds] what are the best build-options for BOTH mssql AND sybase connectivity in same php module, James K. Lowden, 06/03/2013

Archive powered by MHonArc 2.6.24.

Top of Page