Searched refs:conn (Results 1 - 25 of 35) sorted by relevance

12

/PHP_TRUNK/ext/oci8/tests/
H A Ddrcp_functions.inc5 function drcp_create_table($conn)
8 $statement = oci_parse($conn, $create_sql);
18 $s = oci_parse($conn, $insert);
23 function drcp_drop_table($conn)
26 $statement = oci_parse($conn, $ora_sql);
30 function drcp_update_table($conn)
33 $s1 = oci_parse($conn,$update_stmt);
38 function drcp_select_value($conn)
41 $s2 = oci_parse($conn,$sel_stmt);
48 function drcp_select_packagevar($conn)
[all...]
H A Dconn_attr.inc51 function get_attr($conn,$attr)
56 $s2 = oci_parse($conn,$sel_stmt);
88 function set_attr($conn,$attr,$sufix)
91 $r = oci_set_module_name($conn,'PHP TEST'.$sufix);
93 $r = oci_set_action($conn,'TASK'.$sufix);
95 $r = oci_set_client_info($conn,'INFO1'.$sufix);
97 $r = oci_set_client_identifier($conn,'ID00'.$sufix);
105 oci_server_version($conn);
118 function get_edit_attr ($conn) {
120 $s2 = oci_parse($conn,
[all...]
/PHP_TRUNK/ext/mysqli/
H A Dmysqli_mysqlnd.h39 #define mysqli_stmt_get_connection(s) (s)->data->conn
/PHP_TRUNK/ext/odbc/
H A Dphp_birdstep.h43 VConn *conn; member in struct:Vresult
H A Dbirdstep.c163 #define PHP_BIRDSTEP_CHK_LNK(id) if (!(conn = birdstep_find_conn(list, id))) { php_error_docref(NULL, 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_odbc.c473 odbc_connection *conn = (odbc_connection *)rsrc->ptr; local
478 if (res->conn_ptr == conn) {
484 safe_odbc_disconnect(conn->hdbc);
485 SQLFreeConnect(conn->hdbc);
486 SQLFreeEnv(conn->henv);
487 efree(conn);
498 odbc_connection *conn = (odbc_connection *)rsrc->ptr; local
503 if (res->conn_ptr == conn) {
509 safe_odbc_disconnect(conn->hdbc);
510 SQLFreeConnect(conn
865 ODBC_SQL_CONN_T conn; local
1012 odbc_connection *conn; local
1147 odbc_connection *conn; local
1518 odbc_connection *conn; local
1575 odbc_connection *conn; local
2363 odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int cur_opt, int persistent) argument
2663 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_TRUNK/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_TRUNK/sapi/webjames/
H A Dphp_webjames.h26 void webjames_php_request(struct connection *conn);
H A Dwebjames.c33 struct connection *conn; /*structure holding all the details of the current request*/ member in struct:__anon317
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
227 webjames_php_request(struct connection *conn) argument
[all...]
/PHP_TRUNK/ext/mysql/
H A Dphp_mysql.c117 MYSQL *conn; member in struct:_php_mysql_conn
125 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);
552 return mysql->conn;
648 mysqlnd_end_psession(((php_mysql_conn *) le->ptr)->conn);
889 mysql->conn = mysql_init(NULL);
891 mysql->conn = mysqlnd_init(MYSQLND_CLIENT_KNOWS_RSET_COPY_DATA, persistent);
895 mysql_options(mysql->conn, MYSQL_OPT_CONNECT_TIMEOU
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd.c70 MYSQLND_METHOD(mysqlnd_conn_data, free_options)(MYSQLND_CONN_DATA * conn)
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
439 mysqlnd_switch_to_ssl_if_needed( MYSQLND_CONN_DATA * conn, const MYSQLND_PACKET_GREET * const greet_packet, const MYSQLND_OPTIONS * const options, zend_ulong mysql_flags) argument
535 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, zend_ulong mysql_flags, zend_bool silent, zend_bool is_change_user ) argument
670 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, zend_ulong mysql_flags ) argument
1115 MYSQLND_CONN_DATA * conn = conn_handle->data; local
3101 MYSQLND_CONN_DATA * conn = conn_handle->data; local
[all...]
H A Dmysqlnd.h78 #define mysqlnd_restart_psession(conn) ((conn)->data)->m->restart_psession((conn)->data)
79 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data)
90 PHPAPI MYSQLND * mysqlnd_connect(MYSQLND * conn,
100 #define mysqlnd_change_user(conn, user, passwd, db, silent) ((conn)->data)->m->change_user((conn)
[all...]
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);
63 SET_OOM_ERROR(*conn->error_info);
68 change_auth_resp_packet = conn->protocol->m.get_change_auth_response_packet(conn->protocol, FALSE);
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 ) 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, zend_ulong mysql_flags ) 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, zend_ulong mysql_flags ) argument
482 mysqlnd_sha256_get_rsa_key(MYSQLND_CONN_DATA * conn, const MYSQLND_OPTIONS * const options, const MYSQLND_NET_OPTIONS * const net_options ) argument
568 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, zend_ulong mysql_flags ) argument
[all...]
H A Dmysqlnd_driver.c194 MYSQLND_METHOD(mysqlnd_object_factory, get_prepared_statement)(MYSQLND_CONN_DATA * const conn)
197 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent);
206 ret->persistent = conn->persistent;
208 stmt = ret->data = mnd_pecalloc(1, sizeof(MYSQLND_STMT_DATA), conn->persistent);
213 stmt->persistent = conn->persistent;
229 stmt->conn = conn->m->get_reference(conn);
235 zend_llist_init(stmt->error_info->error_list, sizeof(MYSQLND_ERROR_LIST_ELEMENT), (llist_dtor_func_t) mysqlnd_error_list_pdtor, conn->persistent);
240 SET_OOM_ERROR(*conn
[all...]
H A Dmysqlnd_ext_plugin.c34 _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn, unsigned int plugin_id) 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) 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_ext_plugin.h25 PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn, unsigned int plugin_id);
28 PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data_data(const MYSQLND_CONN_DATA * conn, unsigned int plugin_id);
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;
144 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zend_bool * is_warning) argument
154 MYSQLND_NET * net = conn->net;
158 if (!(conn->options->flags & CLIENT_LOCAL_FILES)) {
161 ret = net->data->m.send_ex(net, empty_packet, 0, conn->stats, conn
[all...]
H A Dmysqlnd_ps.c52 MYSQLND_CONN_DATA * conn; local
56 if (!stmt || !stmt->conn || !stmt->result) {
61 conn = stmt->conn;
74 if (CONN_GET_STATE(conn) != CONN_FETCHING_DATA ||
77 SET_CLIENT_ERROR(*conn->error_info, CR_COMMANDS_OUT_OF_SYNC,
85 SET_EMPTY_ERROR(*conn->error_info);
86 MYSQLND_INC_CONN_STATISTIC(conn->stats, STAT_PS_BUFFERED_SETS);
94 SET_OOM_ERROR(*conn->error_info);
98 ret = result->m.store_result_fetch_data(conn, resul
148 MYSQLND_CONN_DATA * conn; local
232 MYSQLND_CONN_DATA * conn; local
496 MYSQLND_CONN_DATA * conn; local
609 MYSQLND_CONN_DATA * conn; local
969 MYSQLND_CONN_DATA * conn; local
1229 MYSQLND_CONN_DATA * conn = stmt->conn; local
1309 MYSQLND_CONN_DATA * conn; local
2143 MYSQLND_CONN_DATA * conn; local
[all...]
H A Dmysqlnd_result.c303 result->unbuf->m.free_result(result->unbuf, result->conn? result->conn->stats : NULL);
343 if (result->conn) {
344 result->conn->m->free_reference(result->conn);
345 result->conn = NULL;
357 MYSQLND_METHOD(mysqlnd_res, read_result_metadata)(MYSQLND_RES * result, MYSQLND_CONN_DATA * conn)
374 SET_OOM_ERROR(*conn->error_info);
381 if (FAIL == result->meta->m->read_metadata(result->meta, conn)) {
402 mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STM argument
[all...]
H A Dmysqlnd_result.h31 enum_func_status mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STMT * stmt);
H A Dmysqlnd_structs.h399 typedef MYSQLND * (*func_mysqlnd_object_factory__clone_connection_object)(MYSQLND * conn);
400 typedef MYSQLND_STMT * (*func_mysqlnd_object_factory__get_prepared_statement)(MYSQLND_CONN_DATA * conn);
415 typedef enum_func_status (*func_mysqlnd_conn_data__init)(MYSQLND_CONN_DATA * conn);
416 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);
417 typedef zend_ulong (*func_mysqlnd_conn_data__escape_string)(MYSQLND_CONN_DATA * const conn, char *newstr, const char *escapestr, size_t escapestr_len);
418 typedef enum_func_status (*func_mysqlnd_conn_data__set_charset)(MYSQLND_CONN_DATA * const conn, const char * const charset);
419 typedef enum_func_status (*func_mysqlnd_conn_data__query)(MYSQLND_CONN_DATA * conn, const char * query, unsigned int query_len);
420 typedef enum_func_status (*func_mysqlnd_conn_data__send_query)(MYSQLND_CONN_DATA * conn, const char *query, unsigned int query_len);
421 typedef enum_func_status (*func_mysqlnd_conn_data__reap_query)(MYSQLND_CONN_DATA * conn);
422 typedef MYSQLND_RES * (*func_mysqlnd_conn_data__use_result)(MYSQLND_CONN_DATA * const conn, cons
1090 MYSQLND_CONN_DATA *conn; member in struct:st_mysqlnd_res
1123 MYSQLND_CONN_DATA *conn; member in struct:st_mysqlnd_stmt_data
[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))) {\
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)
321 php_mysqlnd_greet_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
483 php_mysqlnd_auth_write(void * _packet, MYSQLND_CONN_DATA * conn) argument
681 php_mysqlnd_auth_response_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
801 php_mysqlnd_change_auth_response_write(void * _packet, MYSQLND_CONN_DATA * conn) argument
844 php_mysqlnd_ok_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
930 php_mysqlnd_eof_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
1007 php_mysqlnd_cmd_write(void * _packet, MYSQLND_CONN_DATA * conn) argument
1085 php_mysqlnd_rset_header_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
1224 php_mysqlnd_rset_field_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
1438 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) argument
1789 php_mysqlnd_rowp_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
1909 php_mysqlnd_stats_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
1951 php_mysqlnd_prepare_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
2039 php_mysqlnd_chg_user_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
2127 php_mysqlnd_sha256_pk_request_write(void * _packet, MYSQLND_CONN_DATA * conn) argument
2158 php_mysqlnd_sha256_pk_request_response_read(void * _packet, MYSQLND_CONN_DATA * conn) argument
[all...]
H A Dmysqlnd_wireprotocol.h39 #define PACKET_WRITE(packet, conn) ((packet)->header.m->write_to_net((packet), (conn)))
40 #define PACKET_READ(packet, conn) ((packet)->header.m->read_from_net((packet), (conn)))
54 enum_func_status (*read_from_net)(void * packet, MYSQLND_CONN_DATA * conn);
55 size_t (*write_to_net)(void * packet, MYSQLND_CONN_DATA * conn);
/PHP_TRUNK/sapi/aolserver/
H A Daolserver.c70 Ns_Conn *conn; member in struct:__anon283
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_TRUNK/sapi/phttpd/
H A Dphttpd.c116 i = Ns_SetIFind(NSG(conn->headers), "cookie");
118 http_cookie = Ns_SetValue(NSG(conn->headers), i);
137 total_read = Ns_ConnRead(NSG(conn), buf, max_read);
203 server = Ns_ConnServer(NSG(conn));
206 Ns_UrlToFile(&ds, server, NSG(conn->request->url));
213 SG(request_info).content_length = Ns_ConnContentLength(NSG(conn));
214 index = Ns_SetIFind(NSG(conn)->headers, "content-type");
216 Ns_SetValue(NSG(conn)->headers, index);
218 tmp = Ns_ConnAuthUser(NSG(conn));
224 tmp = Ns_ConnAuthPasswd(NSG(conn));
[all...]

Completed in 55 milliseconds

12