Lines Matching refs:options

77 	net->stream->chunk_size = MIN(to_read, net->options.net_read_buffer_size);  in MYSQLND_METHOD()
166 if (net->options.timeout_connect) { in MYSQLND_METHOD()
167 tv.tv_sec = net->options.timeout_connect; in MYSQLND_METHOD()
173 hashed_details, (net->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
234 if (net->options.timeout_read) { in MYSQLND_METHOD()
236 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->options.timeout_read); in MYSQLND_METHOD()
237 tv.tv_sec = net->options.timeout_read; in MYSQLND_METHOD()
671 net->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
672 DBG_INF_FMT("new_length=%u", net->options.net_read_buffer_size); in MYSQLND_METHOD()
676 net->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
681 if (net->options.ssl_key) { in MYSQLND_METHOD()
682 mnd_pefree(net->options.ssl_key, pers); in MYSQLND_METHOD()
684 net->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
690 if (net->options.ssl_cert) { in MYSQLND_METHOD()
691 mnd_pefree(net->options.ssl_cert, pers); in MYSQLND_METHOD()
693 net->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
699 if (net->options.ssl_ca) { in MYSQLND_METHOD()
700 mnd_pefree(net->options.ssl_ca, pers); in MYSQLND_METHOD()
702 net->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
708 if (net->options.ssl_capath) { in MYSQLND_METHOD()
709 mnd_pefree(net->options.ssl_capath, pers); in MYSQLND_METHOD()
711 net->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
717 if (net->options.ssl_cipher) { in MYSQLND_METHOD()
718 mnd_pefree(net->options.ssl_cipher, pers); in MYSQLND_METHOD()
720 net->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
726 if (net->options.ssl_passphrase) { in MYSQLND_METHOD()
727 mnd_pefree(net->options.ssl_passphrase, pers); in MYSQLND_METHOD()
729 net->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
733 net->options.ssl_verify_peer = value? ((*(zend_bool *)value)? TRUE:FALSE): FALSE; in MYSQLND_METHOD()
736 net->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
740 net->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
744 net->options.flags |= MYSQLND_NET_FLAG_USE_COMPRESSION; in MYSQLND_METHOD()
815 if (net->options.ssl_key) { in MYSQLND_METHOD()
817 ZVAL_STRING(&key_zval, net->options.ssl_key, 0); in MYSQLND_METHOD()
820 if (net->options.ssl_verify_peer) { in MYSQLND_METHOD()
825 if (net->options.ssl_cert) { in MYSQLND_METHOD()
827 ZVAL_STRING(&cert_zval, net->options.ssl_cert, 0); in MYSQLND_METHOD()
829 if (!net->options.ssl_key) { in MYSQLND_METHOD()
833 if (net->options.ssl_ca) { in MYSQLND_METHOD()
835 ZVAL_STRING(&cafile_zval, net->options.ssl_ca, 0); in MYSQLND_METHOD()
838 if (net->options.ssl_capath) { in MYSQLND_METHOD()
840 ZVAL_STRING(&capath_zval, net->options.ssl_capath, 0); in MYSQLND_METHOD()
843 if (net->options.ssl_passphrase) { in MYSQLND_METHOD()
845 ZVAL_STRING(&passphrase_zval, net->options.ssl_passphrase, 0); in MYSQLND_METHOD()
848 if (net->options.ssl_cipher) { in MYSQLND_METHOD()
850 ZVAL_STRING(&cipher_zval, net->options.ssl_cipher, 0); in MYSQLND_METHOD()
870 if (net->options.timeout_read) { in MYSQLND_METHOD()
872 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->options.timeout_read); in MYSQLND_METHOD()
873 tv.tv_sec = net->options.timeout_read; in MYSQLND_METHOD()
909 if (net->options.ssl_key) { in MYSQLND_METHOD()
910 mnd_pefree(net->options.ssl_key, pers); in MYSQLND_METHOD()
911 net->options.ssl_key = NULL; in MYSQLND_METHOD()
913 if (net->options.ssl_cert) { in MYSQLND_METHOD()
914 mnd_pefree(net->options.ssl_cert, pers); in MYSQLND_METHOD()
915 net->options.ssl_cert = NULL; in MYSQLND_METHOD()
917 if (net->options.ssl_ca) { in MYSQLND_METHOD()
918 mnd_pefree(net->options.ssl_ca, pers); in MYSQLND_METHOD()
919 net->options.ssl_ca = NULL; in MYSQLND_METHOD()
921 if (net->options.ssl_capath) { in MYSQLND_METHOD()
922 mnd_pefree(net->options.ssl_capath, pers); in MYSQLND_METHOD()
923 net->options.ssl_capath = NULL; in MYSQLND_METHOD()
925 if (net->options.ssl_cipher) { in MYSQLND_METHOD()
926 mnd_pefree(net->options.ssl_cipher, pers); in MYSQLND_METHOD()
927 net->options.ssl_cipher = NULL; in MYSQLND_METHOD()