/PHP-8.3/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 79 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD() 269 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD() 719 if (vio) { in MYSQLND_METHOD() 720 vio->data->m.free_contents(vio); in MYSQLND_METHOD() 721 vio->data->m.close_stream(vio, stats, error_info); in MYSQLND_METHOD() 723 mnd_pefree(vio, vio->persistent); in MYSQLND_METHOD() 746 if (vio) { in MYSQLND_METHOD() 760 DBG_INF_FMT("%p %p", vio, vio? vio->data->stream:NULL); in MYSQLND_METHOD() 761 DBG_RETURN((vio && vio->data->stream)? TRUE: FALSE); in MYSQLND_METHOD() 814 if (vio) { in mysqlnd_vio_free() [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() 226 …if (FAIL == vio->data->m.network_read(vio, comp_header, COMPRESSED_HEADER_SIZE, conn_stats, error_… in MYSQLND_METHOD() 236 …if (FAIL == vio->data->m.network_read(vio, compressed_data, net_payload_size, conn_stats, error_in… in MYSQLND_METHOD() 248 …if (FAIL == vio->data->m.network_read(vio, pfc->data->uncompressed_data->data, net_payload_size, c… in MYSQLND_METHOD() 344 …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_driver.c | 139 data->vio = mysqlnd_vio_init(persistent, factory, data->stats, data->error_info); in MYSQLND_METHOD() 143 …if (!data->protocol_frame_codec || !data->vio || !data->payload_decoder_factory || !data->command)… in MYSQLND_METHOD() 246 MYSQLND_VIO * vio = mnd_pecalloc(1, vio_alloc_size + vio_data_alloc_size, persistent); in MYSQLND_METHOD() local 250 if (vio) { in MYSQLND_METHOD() 251 vio->data = (MYSQLND_VIO_DATA*)((char*)vio + vio_alloc_size); in MYSQLND_METHOD() 252 vio->persistent = vio->data->persistent = persistent; in MYSQLND_METHOD() 253 vio->data->m = *mysqlnd_vio_get_methods(); in MYSQLND_METHOD() 255 vio->data->m.init(vio, stats, error_info); in MYSQLND_METHOD() 257 DBG_RETURN(vio); in MYSQLND_METHOD()
|
H A D | mysqlnd_ext_plugin.h | 32 void ** (*get_vio_area)(const MYSQLND_VIO * vio, const unsigned int plugin_id); 45 #define mysqlnd_plugin_get_plugin_vio_data(vio, p_id) mysqlnd_plugin_area_getters.get_pfc_area(… argument 108 } vio; member 153 #define mysqlnd_vio_get_methods() mysqlnd_plugin_methods_xetters.vio.get() 154 #define mysqlnd_vio_set_methods(m) mysqlnd_plugin_methods_xetters.vio.set((m))
|
H A D | mysqlnd_wireprotocol.c | 330 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_greet_read() local 497 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_auth_write() local 645 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_auth_response_read() local 759 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_change_auth_response_write() local 798 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_ok_read() local 892 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_eof_read() local 960 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_cmd_write() local 1019 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_rset_header_read() local 1148 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_rset_field_read() local 1653 MYSQLND_VIO * vio = conn->vio; in php_mysqlnd_rowp_read() local [all …]
|
H A D | mysqlnd_loaddata.c | 151 MYSQLND_VIO * vio = conn->vio; in mysqlnd_handle_local_infile() local 198 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile() 218 ret = net->data->m.send(net, vio, empty_packet, 0, conn->stats, conn->error_info); in mysqlnd_handle_local_infile() 224 if ((ret = net->data->m.send(net, vio, buf, bufsize, conn->stats, conn->error_info)) == 0) { in mysqlnd_handle_local_infile() 232 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_connection.c | 279 if (conn->vio) { in MYSQLND_METHOD() 280 conn->vio->data->m.free_contents(conn->vio); in MYSQLND_METHOD() 332 if (conn->vio) { in MYSQLND_METHOD_PRIVATE() 334 conn->vio = NULL; in MYSQLND_METHOD_PRIVATE() 452 MYSQLND_VIO * vio = conn->vio; in MYSQLND_METHOD() local 475 if (vio && (vio->data->options.ssl_key || in MYSQLND_METHOD() 909 MYSQLND_VIO * vio = conn->vio; local 1054 MYSQLND_VIO * vio = conn->vio; local 1055 php_stream * net_stream = vio->data->m.get_stream(vio); 1103 vio->data->m.close_stream(vio, conn->stats, conn->error_info); [all …]
|
H A D | mysqlnd_structs.h | 353 typedef void (*func_mysqlnd_vio__init)(MYSQLND_VIO * const vio, MYSQLND_STATS * const stats, MYS… 354 typedef void (*func_mysqlnd_vio__dtor)(MYSQLND_VIO * const vio, MYSQLND_STATS * const conn_stats… 358 typedef void (*func_mysqlnd_vio__close_stream)(MYSQLND_VIO * const vio, MYSQLND_STATS * const co… 360 typedef php_stream * (*func_mysqlnd_vio__get_stream)(const MYSQLND_VIO * const vio); 361 typedef enum_func_status (*func_mysqlnd_vio__set_stream)(MYSQLND_VIO * const vio, php_stream * vio_… 362 typedef bool (*func_mysqlnd_vio__has_valid_stream)(const MYSQLND_VIO * const vio); 368 typedef enum_func_status (*func_mysqlnd_vio__enable_ssl)(MYSQLND_VIO * const vio); 369 typedef enum_func_status (*func_mysqlnd_vio__disable_ssl)(MYSQLND_VIO * const vio); 373 typedef size_t (*func_mysqlnd_vio__consume_uneaten_data)(MYSQLND_VIO * const vio, enum php_mysql… 375 typedef void (*func_mysqlnd_vio__free_contents)(MYSQLND_VIO * vio); [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_ext_plugin.c | 144 mysqlnd_plugin__get_plugin_vio_data(const MYSQLND_VIO * vio, const unsigned int plugin_id) in mysqlnd_plugin__get_plugin_vio_data() argument 148 if (!vio || plugin_id >= mysqlnd_plugin_count()) { in mysqlnd_plugin__get_plugin_vio_data() 151 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 | 543 …conn->vio->data->m.set_client_option(conn->vio, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, (const char *) &… in MYSQLND_METHOD() 545 if (FAIL == conn->vio->data->m.enable_ssl(conn->vio)) { in MYSQLND_METHOD() 591 DBG_INF_FMT("stream=%p", conn->vio->data->m.get_stream(conn->vio)); in MYSQLND_METHOD()
|
H A D | mysqlnd_auth.c | 912 if (conn->vio->data->ssl) { in mysqlnd_sha256_auth_get_auth_data() 1219 if (conn->vio->data->ssl) { in is_secure_transport() 1223 return strcmp(conn->vio->data->stream->ops->label, "unix_socket") == 0; in is_secure_transport()
|
/PHP-8.3/ext/mysqli/ |
H A D | mysqli_nonapi.c | 185 if (mysql->mysql->data->vio->data->ssl) { 189 …ssl_key = mysql->mysql->data->vio->data->options.ssl_key ? estrdup(mysql->mysql->data->vio->data->… 190 …ssl_cert = mysql->mysql->data->vio->data->options.ssl_cert ? estrdup(mysql->mysql->data->vio->data… 191 …ssl_ca = mysql->mysql->data->vio->data->options.ssl_ca ? estrdup(mysql->mysql->data->vio->data->op… 192 …ssl_capath = mysql->mysql->data->vio->data->options.ssl_capath ? estrdup(mysql->mysql->data->vio->… 193 …ssl_cipher = mysql->mysql->data->vio->data->options.ssl_cipher ? estrdup(mysql->mysql->data->vio->…
|