Searched defs:conn (Results 1 - 20 of 20) sorted by relevance

/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_auth.c33 mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn, argument
60 auth_resp_packet = conn->protocol->m.get_auth_response_packet(conn->protocol, FALSE TSRMLS_CC);
63 SET_OOM_ERROR(*conn->error_info);
68 change_auth_resp_packet = conn->protocol->m.get_change_auth_response_packet(conn->protocol, FALSE TSRMLS_CC);
70 SET_OOM_ERROR(*conn->error_info);
77 if (!PACKET_WRITE(change_auth_resp_packet, conn)) {
78 CONN_SET_STATE(conn, CONN_QUIT_SENT);
79 SET_CLIENT_ERROR(*conn
155 mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn, const char * const user, const size_t user_len, const char * const passwd, const size_t passwd_len, const char * const db, const size_t db_len, const zend_bool silent, zend_bool use_full_blown_auth_packet, const char * const auth_protocol, zend_uchar * auth_plugin_data, size_t auth_plugin_data_len, char ** switch_to_auth_protocol, size_t * switch_to_auth_protocol_len, zend_uchar ** switch_to_auth_protocol_data, size_t * switch_to_auth_protocol_data_len TSRMLS_DC) argument
358 mysqlnd_native_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self, size_t * auth_data_len, MYSQLND_CONN_DATA * conn, const char * const user, const char * const passwd, const size_t passwd_len, zend_uchar * auth_plugin_data, size_t auth_plugin_data_len, const MYSQLND_OPTIONS * const options, const MYSQLND_NET_OPTIONS * const net_options, unsigned long mysql_flags TSRMLS_DC) argument
418 mysqlnd_pam_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self, size_t * auth_data_len, MYSQLND_CONN_DATA * conn, const char * const user, const char * const passwd, const size_t passwd_len, zend_uchar * auth_plugin_data, size_t auth_plugin_data_len, const MYSQLND_OPTIONS * const options, const MYSQLND_NET_OPTIONS * const net_options, unsigned long mysql_flags TSRMLS_DC) argument
482 mysqlnd_sha256_get_rsa_key(MYSQLND_CONN_DATA * conn, const MYSQLND_OPTIONS * const options, const MYSQLND_NET_OPTIONS * const net_options TSRMLS_DC) argument
571 mysqlnd_sha256_auth_get_auth_data(struct st_mysqlnd_authentication_plugin * self, size_t * auth_data_len, MYSQLND_CONN_DATA * conn, const char * const user, const char * const passwd, const size_t passwd_len, zend_uchar * auth_plugin_data, size_t auth_plugin_data_len, const MYSQLND_OPTIONS * const options, const MYSQLND_NET_OPTIONS * const net_options, unsigned long mysql_flags TSRMLS_DC) argument
[all...]
H A Dmysqlnd_loaddata.c129 mysqlnd_local_infile_default(MYSQLND_CONN_DATA * conn) argument
131 conn->infile.local_infile_init = mysqlnd_local_infile_init;
132 conn->infile.local_infile_read = mysqlnd_local_infile_read;
133 conn->infile.local_infile_error = mysqlnd_local_infile_error;
134 conn->infile.local_infile_end = mysqlnd_local_infile_end;
141 mysqlnd_set_local_infile_handler(MYSQLND_CONN_DATA * const conn, const char * const funcname) argument
143 if (!conn->infile.callback) {
144 MAKE_STD_ZVAL(conn->infile.callback);
146 zval_dtor(conn->infile.callback);
148 ZVAL_STRING(conn
158 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zend_bool * is_warning TSRMLS_DC) argument
[all...]
H A Dmysqlnd_ext_plugin.c34 _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn, unsigned int plugin_id TSRMLS_DC) argument
38 if (!conn || plugin_id >= mysqlnd_plugin_count()) {
41 DBG_RETURN((void *)((char *)conn + sizeof(MYSQLND) + plugin_id * sizeof(void *)));
48 _mysqlnd_plugin_get_plugin_connection_data_data(const MYSQLND_CONN_DATA * conn, unsigned int plugin_id TSRMLS_DC) argument
52 if (!conn || plugin_id >= mysqlnd_plugin_count()) {
55 DBG_RETURN((void *)((char *)conn + sizeof(MYSQLND_CONN_DATA) + plugin_id * sizeof(void *)));
H A Dmysqlnd.c70 MYSQLND_METHOD(mysqlnd_conn_data, free_options)(MYSQLND_CONN_DATA * conn TSRMLS_DC)
72 zend_bool pers = conn->persistent;
74 if (conn->options->charset_name) {
75 mnd_pefree(conn->options->charset_name, pers);
76 conn->options->charset_name = NULL;
78 if (conn->options->auth_protocol) {
79 mnd_pefree(conn->options->auth_protocol, pers);
80 conn->options->auth_protocol = NULL;
82 if (conn->options->num_commands) {
84 for (i = 0; i < conn
440 mysqlnd_switch_to_ssl_if_needed( MYSQLND_CONN_DATA * conn, const MYSQLND_PACKET_GREET * const greet_packet, const MYSQLND_OPTIONS * const options, unsigned long mysql_flags TSRMLS_DC ) argument
538 mysqlnd_run_authentication( MYSQLND_CONN_DATA * conn, const char * const user, const char * const passwd, const size_t passwd_len, const char * const db, const size_t db_len, const zend_uchar * const auth_plugin_data, const size_t auth_plugin_data_len, const char * const auth_protocol, unsigned int charset_no, const MYSQLND_OPTIONS * const options, unsigned long mysql_flags, zend_bool silent, zend_bool is_change_user TSRMLS_DC) argument
673 mysqlnd_connect_run_authentication( MYSQLND_CONN_DATA * conn, const char * const user, const char * const passwd, const char * const db, size_t db_len, size_t passwd_len, const MYSQLND_PACKET_GREET * const greet_packet, const MYSQLND_OPTIONS * const options, unsigned long mysql_flags TSRMLS_DC) argument
1118 MYSQLND_CONN_DATA * conn = conn_handle->data; local
3135 MYSQLND_CONN_DATA * conn = conn_handle->data; local
[all...]
H A Dmysqlnd_wireprotocol.c35 #define PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_size, packet_type_as_text, packet_type) \
38 if (FAIL == mysqlnd_read_header((conn)->net, &((packet)->header), (conn)->stats, ((conn)->error_info) TSRMLS_CC)) {\
39 CONN_SET_STATE(conn, CONN_QUIT_SENT); \
40 SET_CLIENT_ERROR(*conn->error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);\
50 if (FAIL == conn->net->data->m.receive_ex((conn)->net, (buf), (packet)->header.size, (conn)->stats, ((conn)
1396 php_mysqlnd_read_row_ex(MYSQLND_CONN_DATA * conn, MYSQLND_MEMORY_POOL * result_set_memory_pool, MYSQLND_MEMORY_POOL_CHUNK ** buffer, size_t * data_size, zend_bool persistent_alloc, unsigned int prealloc_more_bytes TSRMLS_DC) argument
[all...]
H A Dmysqlnd_ps.c51 MYSQLND_CONN_DATA * conn; local
55 if (!stmt || !stmt->conn || !stmt->result) {
60 conn = stmt->conn;
73 if (CONN_GET_STATE(conn) != CONN_FETCHING_DATA ||
76 SET_CLIENT_ERROR(*conn->error_info, CR_COMMANDS_OUT_OF_SYNC,
84 SET_EMPTY_ERROR(*conn->error_info);
85 MYSQLND_INC_CONN_STATISTIC(conn->stats, STAT_PS_BUFFERED_SETS);
93 SET_OOM_ERROR(*conn->error_info);
97 ret = result->m.store_result_fetch_data(conn, resul
147 MYSQLND_CONN_DATA * conn; local
231 MYSQLND_CONN_DATA * conn; local
495 MYSQLND_CONN_DATA * conn; local
608 MYSQLND_CONN_DATA * conn; local
962 MYSQLND_CONN_DATA * conn; local
1214 MYSQLND_CONN_DATA * conn = stmt->conn; local
1294 MYSQLND_CONN_DATA * conn; local
2166 MYSQLND_CONN_DATA * conn; local
[all...]
H A Dmysqlnd_structs.h400 typedef MYSQLND * (*func_mysqlnd_object_factory__clone_connection_object)(MYSQLND * conn TSRMLS_DC);
401 typedef MYSQLND_STMT * (*func_mysqlnd_object_factory__get_prepared_statement)(MYSQLND_CONN_DATA * conn TSRMLS_DC);
416 typedef enum_func_status (*func_mysqlnd_conn_data__init)(MYSQLND_CONN_DATA * conn TSRMLS_DC);
417 typedef enum_func_status (*func_mysqlnd_conn_data__connect)(MYSQLND_CONN_DATA * conn, const char * host, const char * user, const char * passwd, unsigned int passwd_len, const char * db, unsigned int db_len, unsigned int port, const char * socket_or_pipe, unsigned int mysql_flags TSRMLS_DC);
418 typedef ulong (*func_mysqlnd_conn_data__escape_string)(MYSQLND_CONN_DATA * const conn, char *newstr, const char *escapestr, size_t escapestr_len TSRMLS_DC);
419 typedef enum_func_status (*func_mysqlnd_conn_data__set_charset)(MYSQLND_CONN_DATA * const conn, const char * const charset TSRMLS_DC);
420 typedef enum_func_status (*func_mysqlnd_conn_data__query)(MYSQLND_CONN_DATA * conn, const char * query, unsigned int query_len TSRMLS_DC);
421 typedef enum_func_status (*func_mysqlnd_conn_data__send_query)(MYSQLND_CONN_DATA * conn, const char *query, unsigned int query_len TSRMLS_DC);
422 typedef enum_func_status (*func_mysqlnd_conn_data__reap_query)(MYSQLND_CONN_DATA * conn TSRMLS_DC);
423 typedef MYSQLND_RES * (*func_mysqlnd_conn_data__use_result)(MYSQLND_CONN_DATA * const conn, cons
1087 MYSQLND_CONN_DATA *conn; member in struct:st_mysqlnd_res
1120 MYSQLND_CONN_DATA *conn; member in struct:st_mysqlnd_stmt_data
[all...]
H A Dmysqlnd_result.c373 result->unbuf->m.free_result(result->unbuf, result->conn? result->conn->stats : NULL TSRMLS_CC);
413 if (result->conn) {
414 result->conn->m->free_reference(result->conn TSRMLS_CC);
415 result->conn = NULL;
427 MYSQLND_METHOD(mysqlnd_res, read_result_metadata)(MYSQLND_RES * result, MYSQLND_CONN_DATA * conn TSRMLS_DC)
444 SET_OOM_ERROR(*conn->error_info);
451 if (FAIL == result->meta->m->read_metadata(result->meta, conn TSRMLS_CC)) {
472 mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STM argument
[all...]
/PHP_5_6/ext/odbc/
H A Dbirdstep.c163 #define PHP_BIRDSTEP_CHK_LNK(id) if (!(conn = birdstep_find_conn(list, id))) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Birdstep: Not connection index (%ld)", id); RETURN_FALSE; }
168 VConn *conn = (VConn *)rsrc->ptr; local
170 if ( conn ) {
171 efree(conn);
227 static int birdstep_add_conn(HashTable *list,VConn *conn,HDBC hdbc TSRMLS_DC) argument
231 ind = zend_list_insert(conn,php_birdstep_module.le_link TSRMLS_CC);
232 conn->hdbc = hdbc;
233 conn->index = ind;
240 VConn *conn; local
243 conn
255 birdstep_add_result(HashTable *list,Vresult *res,VConn *conn) argument
328 VConn *conn; local
351 VConn *conn; local
577 VConn *conn; local
600 VConn *conn; local
623 VConn *conn; local
646 VConn *conn; local
[all...]
H A Dphp_birdstep.h43 VConn *conn; member in struct:Vresult
H A Dphp_odbc.c474 odbc_connection *conn = (odbc_connection *)rsrc->ptr; local
481 if (res->conn_ptr == conn) {
487 safe_odbc_disconnect(conn->hdbc);
488 SQLFreeConnect(conn->hdbc);
489 SQLFreeEnv(conn->henv);
490 efree(conn);
502 odbc_connection *conn = (odbc_connection *)rsrc->ptr; local
509 if (res->conn_ptr == conn) {
515 safe_odbc_disconnect(conn->hdbc);
516 SQLFreeConnect(conn
876 ODBC_SQL_CONN_T conn; local
1024 odbc_connection *conn; local
1168 odbc_connection *conn; local
1539 odbc_connection *conn; local
1596 odbc_connection *conn; local
2391 odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int cur_opt, int persistent TSRMLS_DC) argument
2691 odbc_connection *conn; local
2934 odbc_connection *conn; local
2984 odbc_connection *conn; local
3045 odbc_connection *conn; local
3099 odbc_connection *conn; local
3166 odbc_connection *conn; local
3236 odbc_connection *conn; local
3300 odbc_connection *conn; local
3378 odbc_connection *conn; local
3436 odbc_connection *conn; local
3497 odbc_connection *conn; local
3565 odbc_connection *conn; local
3631 odbc_connection *conn; local
3701 odbc_connection *conn; local
3769 odbc_connection *conn; local
[all...]
/PHP_5_6/netware/
H A Dstart.c44 int (*readRoutineP)( int conn, void *fileHandle, size_t offset,
36 _NonAppStart( void *NLMHandle, void *errorScreen, const char *cmdLine, const char *loadDirPath, size_t uninitializedDataLength, void *NLMFileHandle, int (*readRoutineP)( int conn, void *fileHandle, size_t offset, size_t nbytes, size_t *bytesRead, void *buffer ), size_t customDataOffset, size_t customDataSize, int messageCount, const char **messages ) argument
/PHP_5_6/sapi/aolserver/
H A Daolserver.c70 Ns_Conn *conn; member in struct:__anon324
95 n = Ns_ConnWrite(NSG(conn), (void *) str, str_length);
129 Ns_ConnSetTypeHeader(NSG(conn), header_content);
131 Ns_ConnSetHeaders(NSG(conn), header_name, header_content);
151 Ns_ConnSetRequiredHeaders(NSG(conn), "text/html", 0);
154 Ns_ConnFlushHeaders(NSG(conn), SG(sapi_headers).http_response_code);
172 total_read = Ns_ConnRead(NSG(conn), buf, max_read);
193 i = Ns_SetIFind(NSG(conn->headers), "cookie");
195 http_cookie = Ns_SetValue(NSG(conn->headers), i);
229 php_info_print_table_row(2, "HTTP Request", NSG(conn)
494 php_ns_request_handler(void *context, Ns_Conn *conn) argument
[all...]
/PHP_5_6/sapi/webjames/
H A Dwebjames.c33 struct connection *conn; /*structure holding all the details of the current request*/ member in struct:__anon350
49 bytes = webjames_writebuffer(WG(conn),str,str_length);
69 if (WG(conn)->flags.outputheaders) {
72 bytes = webjames_writebuffer(WG(conn), header, len);
83 webjames_writestring(WG(conn), "\r\n");
90 if (WG(conn)->body==NULL) return 0;
91 if (count_bytes+WG(bodyread)>WG(conn)->bodysize) count_bytes=WG(conn)->bodysize-WG(bodyread);
92 memcpy(buffer, WG(conn)->body+WG(bodyread), count_bytes);
99 return WG(conn)
219 webjames_php_close(struct connection *conn, int force) argument
228 webjames_php_request(struct connection *conn) argument
[all...]
/PHP_5_6/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h99 PGconn *conn; member in struct:pdo_pgsql_lob_self
/PHP_5_6/ext/pgsql/
H A Dphp_pgsql.h284 PGconn *conn; member in struct:pgLofp
289 PGconn *conn; member in struct:_php_pgsql_result_handle
H A Dpgsql.c786 #define PQescapeStringConn(conn, to, from, len, error) PQescapeString(to, from, len)
790 #define PGSQLescapeLiteral(conn, str, len) PQescapeLiteral(conn, str, len)
791 #define PGSQLescapeIdentifier(conn, str, len) PQescapeIdentifier(conn, str, len)
794 #define PGSQLescapeLiteral(conn, str, len) php_pgsql_PQescapeInternal(conn, str, len, 1, 0)
795 #define PGSQLescapeLiteral2(conn, str, len) php_pgsql_PQescapeInternal(conn, str, len, 1, 1)
796 #define PGSQLescapeIdentifier(conn, st
800 php_pgsql_PQescapeInternal(PGconn *conn, const char *str, size_t len, int escape_literal, int safe) argument
[all...]
/PHP_5_6/ext/mysql/
H A Dphp_mysql.c123 MYSQL *conn; member in struct:_php_mysql_conn
131 mysql_set_server_option(mysql->conn, MYSQL_OPTION_MULTI_STATEMENTS_OFF); \
440 if (mysql_select_db(mysql->conn, db) != 0) {
456 mysql_close(link->conn);
471 mysql_close(link->conn);
549 return mysql->conn;
645 mysqlnd_end_psession(((php_mysql_conn *) le->ptr)->conn);
878 mysql->conn = mysql_init(NULL);
880 mysql->conn = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent);
884 mysql_options(mysql->conn, MYSQL_OPT_CONNECT_TIMEOU
[all...]
/PHP_5_6/ext/mysqli/
H A Dmysqli_api.c40 static void mysqli_tx_cor_options_to_string(const MYSQL * const conn, smart_str * str, const unsigned int mode) argument
113 static int mysqli_commit_or_rollback_libmysql(MYSQL * conn, zend_bool commit, const unsigned int mode, const char * const name TSRMLS_DC) argument
117 mysqli_tx_cor_options_to_string(conn, &tmp_str, mode);
133 ret = mysql_real_query(conn, query, query_len);
H A Dmysqli_nonapi.c1066 static int mysqli_begin_transaction_libmysql(MYSQL * conn, const unsigned int mode, const char * const name TSRMLS_DC) argument
1078 if (mysql_get_server_version(conn) < 50605L) {
1106 ret = mysql_real_query(conn, query, query_len);
1157 static int mysqli_savepoint_libmysql(MYSQL * conn, const char * const name, zend_bool release) argument
1162 ret = mysql_real_query(conn, query, query_len);

Completed in 99 milliseconds