Lines Matching refs:write

259 	if (ch->handlers->write && ch->handlers->write->stream) {  in _php_curl_verify_handlers()
260 …stream = (php_stream *) zend_fetch_resource(&ch->handlers->write->stream TSRMLS_CC, -1, NULL, NULL… in _php_curl_verify_handlers()
265 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_verify_handlers()
266 ch->handlers->write->fp = 0; in _php_curl_verify_handlers()
267 ch->handlers->write->stream = NULL; in _php_curl_verify_handlers()
269 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_verify_handlers()
270 ch->handlers->write->type = PHP_CURL_ASCII; in _php_curl_verify_handlers()
1000 php_curl_write *t = ch->handlers->write; in curl_write()
1237 if (ch->handlers->write->method == PHP_CURL_RETURN && length > 0) { in curl_write_header()
1238 smart_str_appendl(&ch->handlers->write->buf, data, (int) length); in curl_write_header()
1440 (*ch)->handlers->write = ecalloc(1, sizeof(php_curl_write)); in alloc_curl_handle()
1449 (*ch)->handlers->write->stream = NULL; in alloc_curl_handle()
1565 ch->handlers->write->method = PHP_CURL_STDOUT; in PHP_FUNCTION()
1566 ch->handlers->write->type = PHP_CURL_ASCII; in PHP_FUNCTION()
1635 if (ch->handlers->write->stream) { in PHP_FUNCTION()
1636 Z_ADDREF_P(ch->handlers->write->stream); in PHP_FUNCTION()
1638 dupch->handlers->write->stream = ch->handlers->write->stream; in PHP_FUNCTION()
1639 dupch->handlers->write->method = ch->handlers->write->method; in PHP_FUNCTION()
1640 dupch->handlers->write->type = ch->handlers->write->type; in PHP_FUNCTION()
1652 dupch->handlers->write->fp = ch->handlers->write->fp; in PHP_FUNCTION()
1663 if (ch->handlers->write->func_name) { in PHP_FUNCTION()
1664 zval_add_ref(&ch->handlers->write->func_name); in PHP_FUNCTION()
1665 dupch->handlers->write->func_name = ch->handlers->write->func_name; in PHP_FUNCTION()
1930 if (ch->handlers->write->stream) { in _php_curl_setopt()
1931 Z_DELREF_P(ch->handlers->write->stream); in _php_curl_setopt()
1934 ch->handlers->write->fp = fp; in _php_curl_setopt()
1935 ch->handlers->write->method = PHP_CURL_FILE; in _php_curl_setopt()
1936 ch->handlers->write->stream = *zvalue; in _php_curl_setopt()
1991 ch->handlers->write->method = PHP_CURL_RETURN; in _php_curl_setopt()
1993 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_setopt()
2000 ch->handlers->write->type = PHP_CURL_BINARY; in _php_curl_setopt()
2002 ch->handlers->write->type = PHP_CURL_ASCII; in _php_curl_setopt()
2006 if (ch->handlers->write->func_name) { in _php_curl_setopt()
2007 zval_ptr_dtor(&ch->handlers->write->func_name); in _php_curl_setopt()
2008 ch->handlers->write->fci_cache = empty_fcall_info_cache; in _php_curl_setopt()
2011 ch->handlers->write->func_name = *zvalue; in _php_curl_setopt()
2012 ch->handlers->write->method = PHP_CURL_USER; in _php_curl_setopt()
2318 if (ch->handlers->write->buf.len > 0) { in _php_curl_cleanup_handle()
2319 smart_str_free(&ch->handlers->write->buf); in _php_curl_cleanup_handle()
2353 if (ch->handlers->write->buf.len > 0) { in PHP_FUNCTION()
2354 smart_str_free(&ch->handlers->write->buf); in PHP_FUNCTION()
2367 if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) { in PHP_FUNCTION()
2368 smart_str_0(&ch->handlers->write->buf); in PHP_FUNCTION()
2369 RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); in PHP_FUNCTION()
2373 if (ch->handlers->write->method == PHP_CURL_FILE && ch->handlers->write->fp) { in PHP_FUNCTION()
2374 fflush(ch->handlers->write->fp); in PHP_FUNCTION()
2380 if (ch->handlers->write->method == PHP_CURL_RETURN) { in PHP_FUNCTION()
2703 if (ch->handlers->write->buf.len > 0) { in _php_curl_close_ex()
2704 smart_str_free(&ch->handlers->write->buf); in _php_curl_close_ex()
2706 if (ch->handlers->write->func_name) { in _php_curl_close_ex()
2707 zval_ptr_dtor(&ch->handlers->write->func_name); in _php_curl_close_ex()
2731 if (ch->handlers->write->stream) { in _php_curl_close_ex()
2732 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_close_ex()
2738 efree(ch->handlers->write); in _php_curl_close_ex()