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/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_driver.c196 MYSQLND_METHOD(mysqlnd_object_factory, get_prepared_statement)(MYSQLND_CONN_DATA * const conn TSRMLS_DC)
199 MYSQLND_STMT * ret = mnd_pecalloc(1, alloc_size, conn->persistent);
208 ret->persistent = conn->persistent;
210 stmt = ret->data = mnd_pecalloc(1, sizeof(MYSQLND_STMT_DATA), conn->persistent);
215 stmt->persistent = conn->persistent;
231 stmt->conn = conn->m->get_reference(conn TSRMLS_CC);
237 zend_llist_init(stmt->error_info->error_list, sizeof(MYSQLND_ERROR_LIST_ELEMENT), (llist_dtor_func_t) mysqlnd_error_list_pdtor, conn->persistent);
242 SET_OOM_ERROR(*conn
[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.h78 #define mysqlnd_restart_psession(conn) ((conn)->data)->m->restart_psession((conn)->data TSRMLS_CC)
79 #define mysqlnd_end_psession(conn) ((conn)->data)->m->end_psession((conn)->data TSRMLS_CC)
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_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_ext_plugin.h25 PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data(const MYSQLND * conn, unsigned int plugin_id TSRMLS_DC);
28 PHPAPI void ** _mysqlnd_plugin_get_plugin_connection_data_data(const MYSQLND_CONN_DATA * conn, unsigned int plugin_id TSRMLS_DC);
H A Dmysqlnd_ps.c53 MYSQLND_CONN_DATA * conn; local
57 if (!stmt || !stmt->conn || !stmt->result) {
62 conn = stmt->conn;
75 if (CONN_GET_STATE(conn) != CONN_FETCHING_DATA ||
78 SET_CLIENT_ERROR(*conn->error_info, CR_COMMANDS_OUT_OF_SYNC,
86 SET_EMPTY_ERROR(*conn->error_info);
87 MYSQLND_INC_CONN_STATISTIC(conn->stats, STAT_PS_BUFFERED_SETS);
95 SET_OOM_ERROR(*conn->error_info);
99 ret = result->m.store_result_fetch_data(conn, resul
149 MYSQLND_CONN_DATA * conn; local
233 MYSQLND_CONN_DATA * conn; local
497 MYSQLND_CONN_DATA * conn; local
610 MYSQLND_CONN_DATA * conn; local
964 MYSQLND_CONN_DATA * conn; local
1216 MYSQLND_CONN_DATA * conn = stmt->conn; local
1296 MYSQLND_CONN_DATA * conn; local
2152 MYSQLND_CONN_DATA * conn; local
[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...]
H A Dmysqlnd_result.h31 enum_func_status mysqlnd_query_read_result_set_header(MYSQLND_CONN_DATA * conn, MYSQLND_STMT * stmt TSRMLS_DC);
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_wireprotocol.h39 #define PACKET_WRITE(packet, conn) ((packet)->header.m->write_to_net((packet), (conn) TSRMLS_CC))
40 #define PACKET_READ(packet, conn) ((packet)->header.m->read_from_net((packet), (conn) TSRMLS_CC))
54 enum_func_status (*read_from_net)(void * packet, MYSQLND_CONN_DATA * conn TSRMLS_DC);
55 size_t (*write_to_net)(void * packet, MYSQLND_CONN_DATA * conn TSRMLS_DC);
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
1084 MYSQLND_CONN_DATA *conn; member in struct:st_mysqlnd_res
1117 MYSQLND_CONN_DATA *conn; member in struct:st_mysqlnd_stmt_data
[all...]
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...]
/PHP_TRUNK/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
1023 odbc_connection *conn; local
1167 odbc_connection *conn; local
1538 odbc_connection *conn; local
1595 odbc_connection *conn; local
2390 odbc_sqlconnect(odbc_connection **conn, char *db, char *uid, char *pwd, int cur_opt, int persistent TSRMLS_DC) argument
2690 odbc_connection *conn; local
2933 odbc_connection *conn; local
2983 odbc_connection *conn; local
3044 odbc_connection *conn; local
3098 odbc_connection *conn; local
3165 odbc_connection *conn; local
3235 odbc_connection *conn; local
3299 odbc_connection *conn; local
3377 odbc_connection *conn; local
3435 odbc_connection *conn; local
3496 odbc_connection *conn; local
3564 odbc_connection *conn; local
3630 odbc_connection *conn; local
3700 odbc_connection *conn; local
3768 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/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_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...]
/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:__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_TRUNK/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...]

Completed in 44 milliseconds

12