Lines Matching refs:data

81 	php_stream * net_stream = vio->data->m.get_stream(vio);  in MYSQLND_METHOD()
111 ret = php_stream_write(vio->data->m.get_stream(vio), (char *)buffer, count); in MYSQLND_METHOD()
169 vio->data->stream = NULL; in MYSQLND_METHOD()
176 if (vio->data->options.timeout_connect) { in MYSQLND_METHOD()
177 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
183 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
248 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD()
251 if (vio->data->options.timeout_read) { in MYSQLND_METHOD()
253 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", vio->data->options.timeout_read); in MYSQLND_METHOD()
254 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
266 net_stream->chunk_size = vio->data->options.net_read_buffer_size; in MYSQLND_METHOD()
282 ret = vio->data->m.open_pipe; in MYSQLND_METHOD()
287 ret = vio->data->m.open_tcp_or_unix; in MYSQLND_METHOD()
308 vio->data->m.close_stream(vio, conn_stats, error_info); in MYSQLND_METHOD()
310 open_stream = vio->data->m.get_open_stream(vio, scheme, error_info); in MYSQLND_METHOD()
313 if (net_stream && PASS == vio->data->m.set_stream(vio, net_stream)) { in MYSQLND_METHOD()
314 vio->data->m.post_connect_set_opt(vio, scheme, conn_stats, error_info); in MYSQLND_METHOD()
333 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
334 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
338 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
343 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
344 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
346 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
352 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
353 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
355 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
361 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
362 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
364 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
370 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
371 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
373 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
379 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
380 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
382 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
388 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
389 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
391 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
413 net->data->options.ssl_verify_peer = val; in MYSQLND_METHOD()
417 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
421 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
447 php_stream * net_stream = net->data->get_stream(net); in MYSQLND_METHOD()
490 php_stream * net_stream = net->data->m.get_stream(net); in MYSQLND_METHOD()
495 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
497 ZVAL_STRING(&key_zval, net->data->options.ssl_key); in MYSQLND_METHOD()
502 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
504 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert); in MYSQLND_METHOD()
506 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
512 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
514 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca); in MYSQLND_METHOD()
519 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
521 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath); in MYSQLND_METHOD()
526 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
528 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase); in MYSQLND_METHOD()
533 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
535 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher); in MYSQLND_METHOD()
544 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DEFAULT) { in MYSQLND_METHOD()
545 …net->data->options.ssl_verify_peer = any_flag? MYSQLND_SSL_PEER_DEFAULT_ACTION:MYSQLND_SSL_PEER_DO… in MYSQLND_METHOD()
548 verify = net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_VERIFY? TRUE:FALSE; in MYSQLND_METHOD()
554 if (net->data->options.ssl_verify_peer == MYSQLND_SSL_PEER_DONT_VERIFY) { in MYSQLND_METHOD()
567 net->data->ssl = TRUE; in MYSQLND_METHOD()
577 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
579 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
580 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
612 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
613 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
614 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
616 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
617 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
618 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
620 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
621 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
622 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
624 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
625 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
626 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
628 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
629 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
630 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()
644 if (net && (net_stream = net->data->m.get_stream(net))) { in MYSQLND_METHOD()
660 net->data->m.set_stream(net, NULL); in MYSQLND_METHOD()
676 net->data->m.set_client_option(net, MYSQLND_OPT_NET_READ_BUFFER_SIZE, (char *)&buf_size); in MYSQLND_METHOD()
679 net->data->m.set_client_option(net, MYSQL_OPT_READ_TIMEOUT, (char *)&buf_size); in MYSQLND_METHOD()
692 vio->data->m.free_contents(vio); in MYSQLND_METHOD()
693 vio->data->m.close_stream(vio, stats, error_info); in MYSQLND_METHOD()
707 DBG_INF_FMT("%p", net? net->data->stream:NULL); in MYSQLND_METHOD()
708 DBG_RETURN(net? net->data->stream:NULL); in MYSQLND_METHOD()
719 vio->data->stream = net_stream; in MYSQLND_METHOD()
732 DBG_INF_FMT("%p %p", vio, vio? vio->data->stream:NULL); in MYSQLND_METHOD()
733 DBG_RETURN((vio && vio->data->stream)? TRUE: FALSE); in MYSQLND_METHOD()
787 vio->data->m.dtor(vio, stats, error_info); in mysqlnd_vio_free()