Skip to Content.
Sympa Menu

freetds - Re: FreeBSD 3.2 + Apache 1.3.9 + PHP 3.0 + FreeTDS 4.7 + MS SQL 6.5 connection problem.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: FreeBSD 3.2 + Apache 1.3.9 + PHP 3.0 + FreeTDS 4.7 + MS SQL 6.5 connection problem.
  • Date: Thu, 11 Nov 1999 20:20:57 -0500 (EST)




On Thu, 11 Nov 1999, Alexander Cherevko wrote:

> Hello.
>
> > you can try is to compile PHP as a CGI module and run it directly to see
> > if it works, if it does it is definately an environment problem.
>
> I compiled PHP (3.0.12) to CGI. php3.ini in the /usr/local/lib with
>
> sybase.interface_file = "/usr/local/freetds/interfaces"
>
^ ok there is a bug here. search_interface_file() in src/tds/util.c is
called with the parameters out of order. Here is the patch:

[camber@amd133 tds]$ diff util.orig util.c
247c247
< search_interface_file("", interf_file, ip_addr, server, ip_port);
---
> search_interface_file("", interf_file, server, ip_addr, ip_port);

It is also checked in to CVS if you just want to grab the latest version.

Brian





Archive powered by MHonArc 2.6.24.

Top of Page