PHP function/sybase-ct.c often call the ctlib/ct.c->ct_cancel(conn,cmd,type) with first parameter set to NULL. But FreeTDS ignore both cmd and type and use conn->tds_socket without any test only - so it die. It look to me as it is not possible to get working PHP 3.0.16 with CT interface. Or I miss something ? Dan