Lines Matching refs:options

71 	conn->net->stream->chunk_size = MIN(to_read, conn->net->options.net_read_buffer_size);  in MYSQLND_METHOD()
134 if (net->options.timeout_connect) { in MYSQLND_METHOD()
135 tv.tv_sec = net->options.timeout_connect; in MYSQLND_METHOD()
141 hashed_details, (net->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
185 if (!net->options.timeout_read) { in MYSQLND_METHOD()
187 net->options.timeout_read = (unsigned int) MYSQLND_G(net_read_timeout); in MYSQLND_METHOD()
189 if (net->options.timeout_read) { in MYSQLND_METHOD()
190 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->options.timeout_read); in MYSQLND_METHOD()
191 tv.tv_sec = net->options.timeout_read; in MYSQLND_METHOD()
607 net->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
608 DBG_INF_FMT("new_length=%u", net->options.net_read_buffer_size); in MYSQLND_METHOD()
612 net->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
617 if (net->options.ssl_key) { in MYSQLND_METHOD()
618 mnd_pefree(net->options.ssl_key, pers); in MYSQLND_METHOD()
620 net->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
626 if (net->options.ssl_cert) { in MYSQLND_METHOD()
627 mnd_pefree(net->options.ssl_cert, pers); in MYSQLND_METHOD()
629 net->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
635 if (net->options.ssl_ca) { in MYSQLND_METHOD()
636 mnd_pefree(net->options.ssl_ca, pers); in MYSQLND_METHOD()
638 net->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
644 if (net->options.ssl_capath) { in MYSQLND_METHOD()
645 mnd_pefree(net->options.ssl_capath, pers); in MYSQLND_METHOD()
647 net->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
653 if (net->options.ssl_cipher) { in MYSQLND_METHOD()
654 mnd_pefree(net->options.ssl_cipher, pers); in MYSQLND_METHOD()
656 net->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
662 if (net->options.ssl_passphrase) { in MYSQLND_METHOD()
663 mnd_pefree(net->options.ssl_passphrase, pers); in MYSQLND_METHOD()
665 net->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
669 net->options.ssl_verify_peer = value? ((*(zend_bool *)value)? TRUE:FALSE): FALSE; in MYSQLND_METHOD()
674 net->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
678 net->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
682 net->options.flags |= MYSQLND_NET_FLAG_USE_COMPRESSION; in MYSQLND_METHOD()
753 if (net->options.ssl_key) { in MYSQLND_METHOD()
755 ZVAL_STRING(&key_zval, net->options.ssl_key, 0); in MYSQLND_METHOD()
759 if (net->options.ssl_verify_peer) { in MYSQLND_METHOD()
765 if (net->options.ssl_cert) { in MYSQLND_METHOD()
767 ZVAL_STRING(&cert_zval, net->options.ssl_cert, 0); in MYSQLND_METHOD()
768 DBG_INF_FMT("local_cert=%s", net->options.ssl_cert); in MYSQLND_METHOD()
770 if (!net->options.ssl_key) { in MYSQLND_METHOD()
774 if (net->options.ssl_ca) { in MYSQLND_METHOD()
776 ZVAL_STRING(&cafile_zval, net->options.ssl_ca, 0); in MYSQLND_METHOD()
777 DBG_INF_FMT("cafile=%s", net->options.ssl_ca); in MYSQLND_METHOD()
780 if (net->options.ssl_capath) { in MYSQLND_METHOD()
782 ZVAL_STRING(&capath_zval, net->options.ssl_capath, 0); in MYSQLND_METHOD()
783 DBG_INF_FMT("capath=%s", net->options.ssl_capath); in MYSQLND_METHOD()
786 if (net->options.ssl_passphrase) { in MYSQLND_METHOD()
788 ZVAL_STRING(&passphrase_zval, net->options.ssl_passphrase, 0); in MYSQLND_METHOD()
791 if (net->options.ssl_cipher) { in MYSQLND_METHOD()
793 ZVAL_STRING(&cipher_zval, net->options.ssl_cipher, 0); in MYSQLND_METHOD()
794 DBG_INF_FMT("ciphers=%s", net->options.ssl_cipher); in MYSQLND_METHOD()
814 if (net->options.timeout_read) { in MYSQLND_METHOD()
816 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->options.timeout_read); in MYSQLND_METHOD()
817 tv.tv_sec = net->options.timeout_read; in MYSQLND_METHOD()
853 if (net->options.ssl_key) { in MYSQLND_METHOD()
854 mnd_pefree(net->options.ssl_key, pers); in MYSQLND_METHOD()
855 net->options.ssl_key = NULL; in MYSQLND_METHOD()
857 if (net->options.ssl_cert) { in MYSQLND_METHOD()
858 mnd_pefree(net->options.ssl_cert, pers); in MYSQLND_METHOD()
859 net->options.ssl_cert = NULL; in MYSQLND_METHOD()
861 if (net->options.ssl_ca) { in MYSQLND_METHOD()
862 mnd_pefree(net->options.ssl_ca, pers); in MYSQLND_METHOD()
863 net->options.ssl_ca = NULL; in MYSQLND_METHOD()
865 if (net->options.ssl_capath) { in MYSQLND_METHOD()
866 mnd_pefree(net->options.ssl_capath, pers); in MYSQLND_METHOD()
867 net->options.ssl_capath = NULL; in MYSQLND_METHOD()
869 if (net->options.ssl_cipher) { in MYSQLND_METHOD()
870 mnd_pefree(net->options.ssl_cipher, pers); in MYSQLND_METHOD()
871 net->options.ssl_cipher = NULL; in MYSQLND_METHOD()