[freetds] PHP 5.2.6 + pdo_dblib + FreeTDS 0.64 -- tds_open_socket: Unknown error: 0

James K. Lowden jklowden at freetds.org
Wed Jul 23 20:13:37 EDT 2008


Kian Mohageri wrote:
> [foobar]
>         host = foobar.housing.wwu.edu
>         port = 2638
>         tds version = 5.0

Is this a Sybase server?  What says:

	$ tsql -S foobar -U user -P passwd

It don't expect it to solve your problem, but I recommend upgrading to
0.82 while you're at it.  The code in the vicinity of 

> 16:21:00.282174 37177 (net.c:237):tds_open_socket:
> 140.160.12.123:2638: Unknown error: 0

has changed, and that error message is peculiar.  connect(2) can't return
an "error" of 0; zero means success.  But I don't particularly want to
debug 0.64 if that turns out to be the issue.  

HTH.  

--jkl



More information about the FreeTDS mailing list