/PHP-8.0/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 79 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD() 247 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD() 694 if (vio) { in MYSQLND_METHOD() 695 vio->data->m.free_contents(vio); in MYSQLND_METHOD() 696 vio->data->m.close_stream(vio, stats, error_info); in MYSQLND_METHOD() 698 mnd_pefree(vio, vio->persistent); in MYSQLND_METHOD() 721 if (vio) { in MYSQLND_METHOD() 735 DBG_INF_FMT("%p %p", vio, vio? vio->data->stream:NULL); in MYSQLND_METHOD() 736 DBG_RETURN((vio && vio->data->stream)? TRUE: FALSE); in MYSQLND_METHOD() 789 if (vio) { in mysqlnd_vio_free() [all …]
|
H A D | mysqlnd_driver.c | 142 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD() 146 …if (!data->protocol_frame_codec || !data->vio || !data->payload_decoder_factory || !data->command)… in MYSQLND_METHOD() 273 MYSQLND_VIO * vio = mnd_pecalloc(1, vio_alloc_size + vio_data_alloc_size, persistent); in MYSQLND_METHOD() local 277 if (vio) { in MYSQLND_METHOD() 278 vio->data = (MYSQLND_VIO_DATA*)((char*)vio + vio_alloc_size); in MYSQLND_METHOD() 279 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD() 280 vio->data->m = *mysqlnd_vio_get_methods(); in MYSQLND_METHOD() 282 if (PASS != vio->data->m.init(vio, stats, error_info)) { in MYSQLND_METHOD() 283 vio->data->m.dtor(vio, stats, error_info); in MYSQLND_METHOD() 284 vio = NULL; in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_protocol_frame_codec.c | 53 const MYSQLND_PFC *pfc, MYSQLND_VIO *vio, in write_compressed_packet() argument 75 …ssize_t bytes_sent = vio->data->m.network_write(vio, compress_buf, payload_size + MYSQLND_HEADER_S… in write_compressed_packet() 150 pfc, vio, conn_stats, error_info, in MYSQLND_METHOD() 157 pfc, vio, conn_stats, error_info, in MYSQLND_METHOD() 160 pfc, vio, conn_stats, error_info, in MYSQLND_METHOD() 172 …bytes_sent = vio->data->m.network_write(vio, p, to_be_sent + MYSQLND_HEADER_SIZE, conn_stats, erro… in MYSQLND_METHOD() 225 …if (FAIL == vio->data->m.network_read(vio, comp_header, COMPRESSED_HEADER_SIZE, conn_stats, error_… in MYSQLND_METHOD() 235 …if (FAIL == vio->data->m.network_read(vio, compressed_data, net_payload_size, conn_stats, error_in… in MYSQLND_METHOD() 247 …if (FAIL == vio->data->m.network_read(vio, pfc->data->uncompressed_data->data, net_payload_size, c… in MYSQLND_METHOD() 343 …if (FAIL == vio->data->m.network_read(vio, net_header, MYSQLND_HEADER_SIZE, conn_stats, error_info… in MYSQLND_METHOD() [all …]
|
H A D | mysqlnd_ext_plugin.h | 33 void ** (*get_vio_area)(const MYSQLND_VIO * vio, const unsigned int plugin_id); 47 #define mysqlnd_plugin_get_plugin_vio_data(vio, p_id) mysqlnd_plugin_area_getters.get_pfc_area(… argument 110 } vio; member 155 #define mysqlnd_vio_get_methods() mysqlnd_plugin_methods_xetters.vio.get() 156 #define mysqlnd_vio_set_methods(m) mysqlnd_plugin_methods_xetters.vio.set((m))
|
H A D | mysqlnd_loaddata.c | 151 MYSQLND_VIO * vio = conn->vio; in mysqlnd_handle_local_infile() local 160 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile() 180 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile() 186 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile() 194 if ((ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile()
|
H A D | mysqlnd_wireprotocol.c | 333 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_greet_read() local 504 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_auth_write() local 654 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_auth_response_read() local 777 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_change_auth_response_write() local 818 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_ok_read() local 913 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_eof_read() local 981 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_cmd_write() local 1040 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_rset_header_read() local 1182 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_rset_field_read() local 1728 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_rowp_read() local [all …]
|
H A D | mysqlnd_vio.h | 22 PHPAPI void mysqlnd_vio_free(MYSQLND_VIO * const vio, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
|
H A D | mysqlnd_connection.c | 275 if (conn->vio) { in MYSQLND_METHOD() 276 conn->vio->data->m.free_contents(conn->vio); in MYSQLND_METHOD() 351 if (conn->vio) { in MYSQLND_METHOD_PRIVATE() 353 conn->vio = NULL; in MYSQLND_METHOD_PRIVATE() 480 MYSQLND_VIO * vio = conn->vio; in MYSQLND_METHOD() local 503 if (vio && (vio->data->options.ssl_key || in MYSQLND_METHOD() 1004 MYSQLND_VIO * vio = conn->vio; local 1222 MYSQLND_VIO * vio = conn->vio; local 1223 php_stream * net_stream = vio->data->m.get_stream(vio); 1271 vio->data->m.close_stream(vio, conn->stats, conn->error_info); [all …]
|
H A D | mysqlnd_structs.h | 365 typedef enum_func_status (*func_mysqlnd_vio__init)(MYSQLND_VIO * const vio, MYSQLND_STATS * const s… 366 typedef void (*func_mysqlnd_vio__dtor)(MYSQLND_VIO * const vio, MYSQLND_STATS * const conn_stats… 370 typedef void (*func_mysqlnd_vio__close_stream)(MYSQLND_VIO * const vio, MYSQLND_STATS * const co… 372 typedef php_stream * (*func_mysqlnd_vio__get_stream)(const MYSQLND_VIO * const vio); 373 typedef enum_func_status (*func_mysqlnd_vio__set_stream)(MYSQLND_VIO * const vio, php_stream * vio_… 374 typedef zend_bool (*func_mysqlnd_vio__has_valid_stream)(const MYSQLND_VIO * const vio); 380 typedef enum_func_status (*func_mysqlnd_vio__enable_ssl)(MYSQLND_VIO * const vio); 381 typedef enum_func_status (*func_mysqlnd_vio__disable_ssl)(MYSQLND_VIO * const vio); 385 typedef size_t (*func_mysqlnd_vio__consume_uneaten_data)(MYSQLND_VIO * const vio, enum php_mysql… 387 typedef void (*func_mysqlnd_vio__free_contents)(MYSQLND_VIO * vio); [all …]
|
H A D | mysqlnd_ext_plugin.c | 158 mysqlnd_plugin__get_plugin_vio_data(const MYSQLND_VIO * vio, const unsigned int plugin_id) in mysqlnd_plugin__get_plugin_vio_data() argument 162 if (!vio || plugin_id >= mysqlnd_plugin_count()) { in mysqlnd_plugin__get_plugin_vio_data() 165 DBG_RETURN((void *)((char *)vio + sizeof(MYSQLND_VIO) + plugin_id * sizeof(void *))); in mysqlnd_plugin__get_plugin_vio_data()
|
H A D | mysqlnd_commands.c | 580 …conn->vio->data->m.set_client_option(conn->vio, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, (const char *) &… in MYSQLND_METHOD() 582 if (FAIL == conn->vio->data->m.enable_ssl(conn->vio)) { in MYSQLND_METHOD() 626 DBG_INF_FMT("stream=%p", conn->vio->data->m.get_stream(conn->vio)); in MYSQLND_METHOD()
|
H A D | mysqlnd_auth.c | 922 if (conn->vio->data->ssl) { in mysqlnd_sha256_auth_get_auth_data() 1216 if (conn->vio->data->ssl) { in is_secure_transport() 1220 return strcmp(conn->vio->data->stream->ops->label, "unix_socket") == 0; in is_secure_transport()
|
/PHP-8.0/ext/mysqli/ |
H A D | mysqli_nonapi.c | 192 if (mysql->mysql->data->vio->data->ssl) { 196 …ssl_key = mysql->mysql->data->vio->data->options.ssl_key ? estrdup(mysql->mysql->data->vio->data->… 197 …ssl_cert = mysql->mysql->data->vio->data->options.ssl_cert ? estrdup(mysql->mysql->data->vio->data… 198 …ssl_ca = mysql->mysql->data->vio->data->options.ssl_ca ? estrdup(mysql->mysql->data->vio->data->op… 199 …ssl_capath = mysql->mysql->data->vio->data->options.ssl_capath ? estrdup(mysql->mysql->data->vio->… 200 …ssl_cipher = mysql->mysql->data->vio->data->options.ssl_cipher ? estrdup(mysql->mysql->data->vio->…
|