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

/PHP_5_3/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) argument
231 ind = zend_list_insert(conn,php_birdstep_module.le_link);
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
873 ODBC_SQL_CONN_T conn; local
1001 odbc_connection *conn; local
1145 odbc_connection *conn; local
1522 odbc_connection *conn; local
1579 odbc_connection *conn; local
2357 odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int cur_opt, int persistent TSRMLS_DC) argument
2657 odbc_connection *conn; local
2900 odbc_connection *conn; local
2950 odbc_connection *conn; local
3011 odbc_connection *conn; local
3065 odbc_connection *conn; local
3132 odbc_connection *conn; local
3202 odbc_connection *conn; local
3266 odbc_connection *conn; local
3344 odbc_connection *conn; local
3402 odbc_connection *conn; local
3463 odbc_connection *conn; local
3531 odbc_connection *conn; local
3597 odbc_connection *conn; local
3667 odbc_connection *conn; local
3735 odbc_connection *conn; local
[all...]
/PHP_5_3/ext/pdo_pgsql/
H A Dphp_pdo_pgsql_int.h100 PGconn *conn; member in struct:pdo_pgsql_lob_self
/PHP_5_3/ext/pgsql/
H A Dphp_pgsql.h263 PGconn *conn; member in struct:pgLofp
268 PGconn *conn; member in struct:_php_pgsql_result_handle
/PHP_5_3/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_3/sapi/aolserver/
H A Daolserver.c70 Ns_Conn *conn; member in struct:__anon275
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_3/sapi/webjames/
H A Dwebjames.c33 struct connection *conn; /*structure holding all the details of the current request*/ member in struct:__anon293
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_3/ext/mysqlnd/
H A Dmysqlnd_loaddata.c147 PHPAPI void mysqlnd_local_infile_default(MYSQLND *conn) argument
149 conn->infile.local_infile_init = mysqlnd_local_infile_init;
150 conn->infile.local_infile_read = mysqlnd_local_infile_read;
151 conn->infile.local_infile_error = mysqlnd_local_infile_error;
152 conn->infile.local_infile_end = mysqlnd_local_infile_end;
157 PHPAPI void mysqlnd_set_local_infile_handler(MYSQLND * const conn, const char * const funcname) argument
159 if (!conn->infile.callback) {
160 MAKE_STD_ZVAL(conn->infile.callback);
162 zval_dtor(conn->infile.callback);
164 ZVAL_STRING(conn
174 mysqlnd_handle_local_infile(MYSQLND *conn, const char *filename, zend_bool *is_warning TSRMLS_DC) argument
[all...]
H A Dmysqlnd_net.c64 MYSQLND_METHOD(mysqlnd_net, network_read)(MYSQLND * conn, zend_uchar * buffer, size_t count TSRMLS_DC)
68 size_t old_chunk_size = conn->net->stream->chunk_size;
71 conn->net->stream->chunk_size = MIN(to_read, conn->net->options.net_read_buffer_size);
73 if (!(ret = php_stream_read(conn->net->stream, (char *) buffer, to_read))) {
81 MYSQLND_INC_CONN_STATISTIC_W_VALUE(conn->stats, STAT_BYTES_RECEIVED, count - to_read);
82 conn->net->stream->chunk_size = old_chunk_size;
90 MYSQLND_METHOD(mysqlnd_net, network_write)(MYSQLND * const conn, const zend_uchar * const buf, size_t count TSRMLS_DC)
94 ret = php_stream_write(conn->net->stream, (char *)buf, count);
233 MYSQLND_METHOD(mysqlnd_net, send)(MYSQLND * const conn, cha
421 mysqlnd_read_compressed_packet_from_stream_and_fill_read_buffer(MYSQLND * conn, size_t net_payload_size TSRMLS_DC) argument
[all...]
H A Dmysqlnd_structs.h255 typedef size_t (*func_mysqlnd_net__send)(MYSQLND * const conn, char * const buf, size_t count TSRMLS_DC);
256 typedef enum_func_status (*func_mysqlnd_net__receive)(MYSQLND * conn, zend_uchar * buffer, size_t count TSRMLS_DC);
258 typedef enum_func_status (*func_mysqlnd_net__network_read)(MYSQLND * conn, zend_uchar * buffer, size_t count TSRMLS_DC);
259 typedef size_t (*func_mysqlnd_net__network_write)(MYSQLND * const conn, const zend_uchar * const buf, size_t count TSRMLS_DC);
339 typedef enum_func_status (*func_mysqlnd_conn__init)(MYSQLND * conn TSRMLS_DC);
340 typedef enum_func_status (*func_mysqlnd_conn__connect)(MYSQLND *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);
341 typedef ulong (*func_mysqlnd_conn__escape_string)(MYSQLND * const conn, char *newstr, const char *escapestr, size_t escapestr_len TSRMLS_DC);
342 typedef enum_func_status (*func_mysqlnd_conn__set_charset)(MYSQLND * const conn, const char * const charset TSRMLS_DC);
343 typedef enum_func_status (*func_mysqlnd_conn__query)(MYSQLND *conn, const char *query, unsigned int query_len TSRMLS_DC);
344 typedef enum_func_status (*func_mysqlnd_conn__send_query)(MYSQLND *conn, cons
858 MYSQLND *conn; member in struct:st_mysqlnd_res
898 MYSQLND *conn; member in struct:st_mysqlnd_stmt_data
[all...]
H A Dmysqlnd_wireprotocol.c34 #define PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_size, packet_type_as_text, packet_type) \
37 if (FAIL == mysqlnd_read_header((conn), &((packet)->header) TSRMLS_CC)) {\
38 CONN_SET_STATE(conn, CONN_QUIT_SENT); \
39 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);\
49 if (FAIL == conn->net->m.receive((conn), (buf), (packet)->header.size TSRMLS_CC)) { \
50 CONN_SET_STATE(conn, CONN_QUIT_SENT); \
51 SET_CLIENT_ERROR(conn->error_info, CR_SERVER_GONE_ERROR, UNKNOWN_SQLSTATE, mysqlnd_server_gone);\
56 MYSQLND_INC_CONN_STATISTIC_W_VALUE2(conn->stats, packet_type_to_statistic_byte_count[packet_type], \
260 mysqlnd_read_header(MYSQLND * conn, MYSQLND_PACKET_HEADE argument
1110 php_mysqlnd_read_row_ex(MYSQLND * 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.c85 MYSQLND_METHOD(mysqlnd_conn, free_options)(MYSQLND * conn TSRMLS_DC)
87 zend_bool pers = conn->persistent;
89 if (conn->options.charset_name) {
90 mnd_pefree(conn->options.charset_name, pers);
91 conn->options.charset_name = NULL;
93 if (conn->options.num_commands) {
95 for (i = 0; i < conn->options.num_commands; i++) {
97 mnd_pefree(conn->options.init_commands[i], pers);
99 mnd_pefree(conn->options.init_commands, pers);
100 conn
432 mysqlnd_connect_run_authentication( MYSQLND * conn, const char * const user, const char * const passwd, const char * const db, size_t db_len, const MYSQLND_PACKET_GREET * const greet_packet, const MYSQLND_OPTIONS * const options, unsigned long mysql_flags TSRMLS_DC) argument
858 mysqlnd_connect(MYSQLND * 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) argument
2439 _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn, unsigned int plugin_id TSRMLS_DC) argument
[all...]
H A Dmysqlnd_ps.c61 MYSQLND * conn; local
66 if (!stmt || !stmt->conn || !stmt->result) {
71 conn = stmt->conn;
84 if (CONN_GET_STATE(conn) != CONN_FETCHING_DATA ||
87 SET_CLIENT_ERROR(conn->error_info, CR_COMMANDS_OUT_OF_SYNC,
95 SET_EMPTY_ERROR(stmt->conn->error_info);
96 MYSQLND_INC_CONN_STATISTIC(conn->stats, STAT_PS_BUFFERED_SETS);
105 ret = result->m.store_result_fetch_data(conn, result, result->meta, TRUE, to_cache TSRMLS_CC);
113 conn
130 MYSQLND * conn; local
215 MYSQLND * conn; local
477 MYSQLND * conn; local
585 MYSQLND * conn; local
963 MYSQLND * conn; local
1224 MYSQLND * conn = stmt->conn; local
1282 MYSQLND * conn; local
2139 MYSQLND * conn; local
[all...]
H A Dmysqlnd_result.c58 result->conn->options.numeric_and_datetime_as_unicode,
59 result->conn->options.int_and_float_native,
60 result->conn->stats TSRMLS_CC);
157 MYSQLND_STATS *global_stats = result->conn? result->conn->stats:NULL;
318 if (result->conn) {
319 result->conn->m->free_reference(result->conn TSRMLS_CC);
320 result->conn = NULL;
332 MYSQLND_METHOD(mysqlnd_res, read_result_metadata)(MYSQLND_RES * result, MYSQLND *conn TSRMLS_D
377 mysqlnd_query_read_result_set_header(MYSQLND *conn, MYSQLND_STMT * s TSRMLS_DC) argument
[all...]
/PHP_5_3/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);
615 mysqlnd_end_psession(((php_mysql_conn *) le->ptr)->conn);
844 mysql->conn = mysql_init(NULL);
846 mysql->conn = mysql_init(persistent);
850 mysql_options(mysql->conn, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&connect_timeout);
853 if (mysql_real_connect(mysql->conn, hos
[all...]

Completed in 21 milliseconds