Lines Matching refs:sybase

40 ZEND_DECLARE_MODULE_GLOBALS(sybase)
41 static PHP_GINIT_FUNCTION(sybase);
42 static PHP_GSHUTDOWN_FUNCTION(sybase);
214 PHP_MINIT(sybase),
215 PHP_MSHUTDOWN(sybase),
216 PHP_RINIT(sybase),
217 PHP_RSHUTDOWN(sybase),
218 PHP_MINFO(sybase),
220 PHP_MODULE_GLOBALS(sybase),
221 PHP_GINIT(sybase),
222 PHP_GSHUTDOWN(sybase),
230 ZEND_GET_MODULE(sybase)
233 ZEND_DECLARE_MODULE_GLOBALS(sybase) in ZEND_DECLARE_MODULE_GLOBALS() argument
468 sybase_link *sybase; in _server_message_handler() local
477 …if (ct_con_props(connection, CS_GET, CS_USERDATA, &sybase, CS_SIZEOF(sybase), NULL) != CS_SUCCEED)… in _server_message_handler()
478 sybase = NULL; in _server_message_handler()
485 if (sybase && (srvmsg->msgnumber == 1205)) { in _server_message_handler()
486 sybase->deadlock = 1; in _server_message_handler()
498 if (sybase) { in _server_message_handler()
499 handled = handled | _call_message_handler(sybase->callback_name, srvmsg TSRMLS_CC); in _server_message_handler()
524 static PHP_GINIT_FUNCTION(sybase) in PHP_INI_END()
574 static PHP_GSHUTDOWN_FUNCTION(sybase) in PHP_GSHUTDOWN_FUNCTION() argument
580 PHP_MINIT_FUNCTION(sybase) in PHP_MINIT_FUNCTION() argument
593 PHP_RINIT_FUNCTION(sybase) in PHP_RINIT_FUNCTION() argument
604 PHP_MSHUTDOWN_FUNCTION(sybase) in PHP_MSHUTDOWN_FUNCTION() argument
615 PHP_RSHUTDOWN_FUNCTION(sybase) in PHP_RSHUTDOWN_FUNCTION() argument
629 static int php_sybase_do_connect_internal(sybase_link *sybase, char *host, char *user, char *passwd… in php_sybase_do_connect_internal() argument
635 if (ct_con_alloc(SybCtG(context), &sybase->connection)!=CS_SUCCEED) { in php_sybase_do_connect_internal()
641 …if (ct_con_props(sybase->connection, CS_SET, CS_USERDATA, &sybase, CS_SIZEOF(sybase), NULL)!=CS_SU… in php_sybase_do_connect_internal()
643 ct_con_drop(sybase->connection); in php_sybase_do_connect_internal()
648 ct_con_props(sybase->connection, CS_SET, CS_USERNAME, user, CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
651 ct_con_props(sybase->connection, CS_SET, CS_PASSWORD, passwd, CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
654 ct_con_props(sybase->connection, CS_SET, CS_APPNAME, appname, CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
656 ct_con_props(sybase->connection, CS_SET, CS_APPNAME, SybCtG(appname), CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
660 ct_con_props(sybase->connection, CS_SET, CS_HOSTNAME, SybCtG(hostname), CS_NULLTERM, NULL); in php_sybase_do_connect_internal()
673 …if (ct_con_props(sybase->connection, CS_SET, CS_LOC_PROP, tmp_locale, CS_UNUSED, NULL)!=CS_SUCCEED… in php_sybase_do_connect_internal()
682 …if (ct_con_props(sybase->connection, CS_SET, CS_PACKETSIZE, (CS_VOID *)&packetsize, CS_UNUSED, NUL… in php_sybase_do_connect_internal()
706 sybase->valid = 1; in php_sybase_do_connect_internal()
707 sybase->dead = 0; in php_sybase_do_connect_internal()
708 sybase->active_result_index = 0; in php_sybase_do_connect_internal()
709 sybase->callback_name = NULL; in php_sybase_do_connect_internal()
712 if (ct_connect(sybase->connection, host, CS_NULLTERM)!=CS_SUCCEED) { in php_sybase_do_connect_internal()
714 ct_con_drop(sybase->connection); in php_sybase_do_connect_internal()
718 if (ct_cmd_alloc(sybase->connection, &sybase->cmd)!=CS_SUCCEED) { in php_sybase_do_connect_internal()
720 ct_close(sybase->connection, CS_UNUSED); in php_sybase_do_connect_internal()
721 ct_con_drop(sybase->connection); in php_sybase_do_connect_internal()
821 sybase_link sybase; in php_sybase_do_connect() local
837 memcpy(&sybase, sybase_ptr, sizeof(sybase_link)); in php_sybase_do_connect()
839 memcpy(sybase_ptr, &sybase, sizeof(sybase_link)); in php_sybase_do_connect()
843 ct_con_drop(sybase.connection); /* drop old connection */ in php_sybase_do_connect()
2119 PHP_MINFO_FUNCTION(sybase) in PHP_MINFO_FUNCTION() argument