Lines Matching refs:zvalue

1686 static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *return_value TSRMLS_DC)…  in _php_curl_setopt()  argument
1692 if(Z_BVAL_PP(zvalue) == 1) { in _php_curl_setopt()
1785 convert_to_long_ex(zvalue); in _php_curl_setopt()
1788 …((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) && (Z_LVAL_PP(zvalue) & CURLPROTO_FILE)… in _php_curl_setopt()
1794 error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); in _php_curl_setopt()
1799 convert_to_long_ex(zvalue); in _php_curl_setopt()
1800 error = curl_easy_setopt(ch->cp, option, (curl_off_t)Z_LVAL_PP(zvalue)); in _php_curl_setopt()
1804 convert_to_long_ex(zvalue); in _php_curl_setopt()
1806 if (Z_LVAL_PP(zvalue) != 0) { in _php_curl_setopt()
1812 error = curl_easy_setopt(ch->cp, option, Z_LVAL_PP(zvalue)); in _php_curl_setopt()
1816 convert_to_long_ex(zvalue); in _php_curl_setopt()
1817 error = curl_easy_setopt(ch->cp, CURLOPT_POSTREDIR, Z_LVAL_PP(zvalue) & CURL_REDIR_POST_ALL); in _php_curl_setopt()
1853 convert_to_string_ex(zvalue); in _php_curl_setopt()
1859 …if (php_check_open_basedir(Z_STRVAL_PP(zvalue) TSRMLS_CC) || (PG(safe_mode) && !php_checkuid(Z_STR… in _php_curl_setopt()
1866 if (!php_curl_option_url(ch, Z_STRVAL_PP(zvalue), Z_STRLEN_PP(zvalue))) { in _php_curl_setopt()
1876 copystr = estrndup(Z_STRVAL_PP(zvalue), Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
1882 error = curl_easy_setopt(ch->cp, option, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
1898 …what = zend_fetch_resource(zvalue TSRMLS_CC, -1, "File-Handle", &type, 1, php_file_le_stream(), ph… in _php_curl_setopt()
1921 Z_ADDREF_PP(zvalue); in _php_curl_setopt()
1924 ch->handlers->write->stream = *zvalue; in _php_curl_setopt()
1936 Z_ADDREF_PP(zvalue); in _php_curl_setopt()
1939 ch->handlers->write_header->stream = *zvalue; in _php_curl_setopt()
1950 Z_ADDREF_PP(zvalue); in _php_curl_setopt()
1952 ch->handlers->read->fd = Z_LVAL_PP(zvalue); in _php_curl_setopt()
1953 ch->handlers->read->stream = *zvalue; in _php_curl_setopt()
1960 zval_add_ref(zvalue); in _php_curl_setopt()
1961 ch->handlers->std_err = *zvalue; in _php_curl_setopt()
1976 convert_to_long_ex(zvalue); in _php_curl_setopt()
1978 if (Z_LVAL_PP(zvalue)) { in _php_curl_setopt()
1985 convert_to_long_ex(zvalue); in _php_curl_setopt()
1987 if (Z_LVAL_PP(zvalue)) { in _php_curl_setopt()
1998 zval_add_ref(zvalue); in _php_curl_setopt()
1999 ch->handlers->write->func_name = *zvalue; in _php_curl_setopt()
2007 zval_add_ref(zvalue); in _php_curl_setopt()
2008 ch->handlers->read->func_name = *zvalue; in _php_curl_setopt()
2018 zval_add_ref(zvalue); in _php_curl_setopt()
2019 ch->handlers->progress->func_name = *zvalue; in _php_curl_setopt()
2027 zval_add_ref(zvalue); in _php_curl_setopt()
2028 ch->handlers->write_header->func_name = *zvalue; in _php_curl_setopt()
2036 zval_add_ref(zvalue); in _php_curl_setopt()
2037 ch->handlers->passwd = *zvalue; in _php_curl_setopt()
2043 if (Z_TYPE_PP(zvalue) == IS_ARRAY || Z_TYPE_PP(zvalue) == IS_OBJECT) { in _php_curl_setopt()
2053 postfields = HASH_OF(*zvalue); in _php_curl_setopt()
2124 convert_to_string_ex(zvalue); in _php_curl_setopt()
2126 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2127 error = curl_easy_setopt(ch->cp, CURLOPT_COPYPOSTFIELDS, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
2131 convert_to_string_ex(zvalue); in _php_curl_setopt()
2132 post = estrndup(Z_STRVAL_PP(zvalue), Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2136 error = curl_easy_setopt(ch->cp, CURLOPT_POSTFIELDSIZE, Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2148 ph = HASH_OF(*zvalue); in _php_curl_setopt()
2186 convert_to_string_ex(zvalue); in _php_curl_setopt()
2188 …if ((Z_STRLEN_PP(zvalue) && php_check_open_basedir(Z_STRVAL_PP(zvalue) TSRMLS_CC)) || (PG(safe_mod… in _php_curl_setopt()
2194 error = curl_easy_setopt(ch->cp, option, Z_STRVAL_PP(zvalue)); in _php_curl_setopt()
2196 copystr = estrndup(Z_STRVAL_PP(zvalue), Z_STRLEN_PP(zvalue)); in _php_curl_setopt()
2204 convert_to_long_ex(zvalue); in _php_curl_setopt()
2205 if (Z_LVAL_PP(zvalue) == 1) { in _php_curl_setopt()
2230 zval *zid, **zvalue; in PHP_FUNCTION() local
2234 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rlZ", &zid, &options, &zvalue) == FAILURE) { in PHP_FUNCTION()
2245 if (!_php_curl_setopt(ch, options, zvalue, return_value TSRMLS_CC)) { in PHP_FUNCTION()