Lines Matching refs:write
255 if (ch->handlers->write && ch->handlers->write->stream) { in _php_curl_verify_handlers()
256 …stream = (php_stream *) zend_fetch_resource(&ch->handlers->write->stream TSRMLS_CC, -1, NULL, NULL… in _php_curl_verify_handlers()
261 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_verify_handlers()
262 ch->handlers->write->fp = 0; in _php_curl_verify_handlers()
263 ch->handlers->write->stream = NULL; in _php_curl_verify_handlers()
265 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_verify_handlers()
266 ch->handlers->write->type = PHP_CURL_ASCII; in _php_curl_verify_handlers()
988 php_curl_write *t = ch->handlers->write; in curl_write()
1224 if (ch->handlers->write->method == PHP_CURL_RETURN && length > 0) { in curl_write_header()
1225 smart_str_appendl(&ch->handlers->write->buf, data, (int) length); in curl_write_header()
1426 (*ch)->handlers->write = ecalloc(1, sizeof(php_curl_write)); in alloc_curl_handle()
1435 (*ch)->handlers->write->stream = NULL; in alloc_curl_handle()
1549 ch->handlers->write->method = PHP_CURL_STDOUT; in PHP_FUNCTION()
1550 ch->handlers->write->type = PHP_CURL_ASCII; in PHP_FUNCTION()
1621 if (ch->handlers->write->stream) { in PHP_FUNCTION()
1622 Z_ADDREF_P(ch->handlers->write->stream); in PHP_FUNCTION()
1624 dupch->handlers->write->stream = ch->handlers->write->stream; in PHP_FUNCTION()
1625 dupch->handlers->write->method = ch->handlers->write->method; in PHP_FUNCTION()
1626 dupch->handlers->write->type = ch->handlers->write->type; in PHP_FUNCTION()
1638 dupch->handlers->write->fp = ch->handlers->write->fp; in PHP_FUNCTION()
1649 if (ch->handlers->write->func_name) { in PHP_FUNCTION()
1650 zval_add_ref(&ch->handlers->write->func_name); in PHP_FUNCTION()
1651 dupch->handlers->write->func_name = ch->handlers->write->func_name; in PHP_FUNCTION()
1918 if (ch->handlers->write->stream) { in _php_curl_setopt()
1919 Z_DELREF_P(ch->handlers->write->stream); in _php_curl_setopt()
1922 ch->handlers->write->fp = fp; in _php_curl_setopt()
1923 ch->handlers->write->method = PHP_CURL_FILE; in _php_curl_setopt()
1924 ch->handlers->write->stream = *zvalue; in _php_curl_setopt()
1979 ch->handlers->write->method = PHP_CURL_RETURN; in _php_curl_setopt()
1981 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_setopt()
1988 ch->handlers->write->type = PHP_CURL_BINARY; in _php_curl_setopt()
1990 ch->handlers->write->type = PHP_CURL_ASCII; in _php_curl_setopt()
1994 if (ch->handlers->write->func_name) { in _php_curl_setopt()
1995 zval_ptr_dtor(&ch->handlers->write->func_name); in _php_curl_setopt()
1996 ch->handlers->write->fci_cache = empty_fcall_info_cache; in _php_curl_setopt()
1999 ch->handlers->write->func_name = *zvalue; in _php_curl_setopt()
2000 ch->handlers->write->method = PHP_CURL_USER; in _php_curl_setopt()
2289 if (ch->handlers->write->buf.len > 0) { in _php_curl_cleanup_handle()
2290 smart_str_free(&ch->handlers->write->buf); in _php_curl_cleanup_handle()
2324 if (ch->handlers->write->buf.len > 0) { in PHP_FUNCTION()
2325 smart_str_free(&ch->handlers->write->buf); in PHP_FUNCTION()
2338 if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.len > 0) { in PHP_FUNCTION()
2339 smart_str_0(&ch->handlers->write->buf); in PHP_FUNCTION()
2340 RETURN_STRINGL(ch->handlers->write->buf.c, ch->handlers->write->buf.len, 1); in PHP_FUNCTION()
2344 if (ch->handlers->write->method == PHP_CURL_FILE && ch->handlers->write->fp) { in PHP_FUNCTION()
2345 fflush(ch->handlers->write->fp); in PHP_FUNCTION()
2351 if (ch->handlers->write->method == PHP_CURL_RETURN) { in PHP_FUNCTION()
2644 if (ch->handlers->write->buf.len > 0) { in _php_curl_close_ex()
2645 smart_str_free(&ch->handlers->write->buf); in _php_curl_close_ex()
2647 if (ch->handlers->write->func_name) { in _php_curl_close_ex()
2648 zval_ptr_dtor(&ch->handlers->write->func_name); in _php_curl_close_ex()
2672 if (ch->handlers->write->stream) { in _php_curl_close_ex()
2673 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_close_ex()
2679 efree(ch->handlers->write); in _php_curl_close_ex()