From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.5 Slackware 8.0
PHP version:      4.0.6
PHP Bug Type:     Any
Bug description:  Segfault when using FreeTDS connect

Linux 2.4.5 Slackware 8.0

FreeTDS 0.52:
./configure --with-tdsver=4.2 --enable-msdblib --enable-dbmfix
--with-gnu-ld --enable-shared --enable-static 

PHP 4.0.6:
./configure --with-sybase=/usr/local/freetds
--with-openssl=/usr/src/openssl-0.9.6b --with-apache=/usr/src/apache_1.3.20
--with-mysql=/usr/local/mysql/ --enable-track-vars

Apache 1.3.20:
./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a --disable-module=imap

Configures OK, compilation successfull, then

SYBASE=/usr/local/freetds
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$SYBASE/lib
export SYBASE LD_LIBRARY_PATH
/usr/local/apache/bin/apachectl start

Standard PHP functions work, but when trying to connect to MS SQL 6.5
server Apache segfaults:
[notice] child pid 24856 exit signal Segmentation fault (11)


PHP script used:

<?php
$connect_id = mssql_connect("server" , "user" , "abcdefg" );
?>

And exactly the same:

<?php
$connect_id = mssql_pconnect("server" , "user" , "abcdefg" );
?>

Any solutions?
Tried to compile PHP with ctlib (--with-sybase-ct=/usr/local/freetds) and
after patching some source to remove -lsybtcl -lcs -lcomn -lintl
compilation went successfull, but finally Apache segfaults the same way.

-- 
Edit bug report at: http://bugs.php.net/?id=12250&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to