I have tested this fix and it works great. Please include it on release 4.0.6, sybase_ct get fixed.

Thanks.
 

[EMAIL PROTECTED] wrote:

From:             [EMAIL PROTECTED]
Operating system: Win32
PHP version:      4.0.4pl1
PHP Bug Type:     Sybase-ct (ctlib) related
Bug description:  memory fault after sybase_connect

memory fault after sybase_connect

in order to connect to sybase server with PHP4 and Sybase openclient 11.1.1, you need to change some lines in php_sybase_ct.c

all sybase message handler must be declared with CS_PUBLIC :

CS_RETCODE CS_PUBLIC _client_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_CLIENTMSG *errmsg)

and

CS_RETCODE CS_PUBLIC _server_message_handler(CS_CONTEXT *context, CS_CONNECTION *connection, CS_SERVERMSG *srvmsg)

please change these lines.
thanks

--
Edit Bug report at: http://bugs.php.net/?id=8836&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