Lines Matching refs:options
78 net_stream->chunk_size = MIN(to_read, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
173 if (net->data->options.timeout_connect) { in MYSQLND_METHOD()
174 tv.tv_sec = net->data->options.timeout_connect; in MYSQLND_METHOD()
180 hashed_details, (net->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
243 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
245 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
246 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
709 net->data->options.net_read_buffer_size = *(unsigned int*) value; in MYSQLND_METHOD()
710 DBG_INF_FMT("new_length="MYSQLND_SZ_T_SPEC, net->data->options.net_read_buffer_size); in MYSQLND_METHOD()
714 net->data->options.timeout_connect = *(unsigned int*) value; in MYSQLND_METHOD()
719 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
720 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
722 net->data->options.ssl_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
728 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
729 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
731 net->data->options.ssl_cert = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
737 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
738 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
740 net->data->options.ssl_ca = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
746 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
747 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
749 net->data->options.ssl_capath = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
755 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
756 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
758 net->data->options.ssl_cipher = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
764 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
765 mnd_pefree(net->data->options.ssl_passphrase, pers); in MYSQLND_METHOD()
767 net->data->options.ssl_passphrase = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
771 net->data->options.ssl_verify_peer = value? ((*(zend_bool *)value)? TRUE:FALSE): FALSE; in MYSQLND_METHOD()
774 net->data->options.timeout_read = *(unsigned int*) value; in MYSQLND_METHOD()
778 net->data->options.timeout_write = *(unsigned int*) value; in MYSQLND_METHOD()
782 net->data->options.flags |= MYSQLND_NET_FLAG_USE_COMPRESSION; in MYSQLND_METHOD()
787 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
788 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
790 net->data->options.sha256_server_public_key = value? mnd_pestrdup(value, pers) : NULL; in MYSQLND_METHOD()
865 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
867 ZVAL_STRING(&key_zval, net->data->options.ssl_key, 0); in MYSQLND_METHOD()
870 if (net->data->options.ssl_verify_peer) { in MYSQLND_METHOD()
875 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
877 ZVAL_STRING(&cert_zval, net->data->options.ssl_cert, 0); in MYSQLND_METHOD()
879 if (!net->data->options.ssl_key) { in MYSQLND_METHOD()
883 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
885 ZVAL_STRING(&cafile_zval, net->data->options.ssl_ca, 0); in MYSQLND_METHOD()
888 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
890 ZVAL_STRING(&capath_zval, net->data->options.ssl_capath, 0); in MYSQLND_METHOD()
893 if (net->data->options.ssl_passphrase) { in MYSQLND_METHOD()
895 ZVAL_STRING(&passphrase_zval, net->data->options.ssl_passphrase, 0); in MYSQLND_METHOD()
898 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
900 ZVAL_STRING(&cipher_zval, net->data->options.ssl_cipher, 0); in MYSQLND_METHOD()
921 if (net->data->options.timeout_read) { in MYSQLND_METHOD()
923 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", net->data->options.timeout_read); in MYSQLND_METHOD()
924 tv.tv_sec = net->data->options.timeout_read; in MYSQLND_METHOD()
961 if (net->data->options.ssl_key) { in MYSQLND_METHOD()
962 mnd_pefree(net->data->options.ssl_key, pers); in MYSQLND_METHOD()
963 net->data->options.ssl_key = NULL; in MYSQLND_METHOD()
965 if (net->data->options.ssl_cert) { in MYSQLND_METHOD()
966 mnd_pefree(net->data->options.ssl_cert, pers); in MYSQLND_METHOD()
967 net->data->options.ssl_cert = NULL; in MYSQLND_METHOD()
969 if (net->data->options.ssl_ca) { in MYSQLND_METHOD()
970 mnd_pefree(net->data->options.ssl_ca, pers); in MYSQLND_METHOD()
971 net->data->options.ssl_ca = NULL; in MYSQLND_METHOD()
973 if (net->data->options.ssl_capath) { in MYSQLND_METHOD()
974 mnd_pefree(net->data->options.ssl_capath, pers); in MYSQLND_METHOD()
975 net->data->options.ssl_capath = NULL; in MYSQLND_METHOD()
977 if (net->data->options.ssl_cipher) { in MYSQLND_METHOD()
978 mnd_pefree(net->data->options.ssl_cipher, pers); in MYSQLND_METHOD()
979 net->data->options.ssl_cipher = NULL; in MYSQLND_METHOD()
981 if (net->data->options.sha256_server_public_key) { in MYSQLND_METHOD()
982 mnd_pefree(net->data->options.sha256_server_public_key, pers); in MYSQLND_METHOD()
983 net->data->options.sha256_server_public_key = NULL; in MYSQLND_METHOD()