Lines Matching refs:write_header

245 	if (ch->handlers->write_header && ch->handlers->write_header->stream) {  in _php_curl_verify_handlers()
246 …stream = (php_stream *) zend_fetch_resource(&ch->handlers->write_header->stream TSRMLS_CC, -1, NUL… in _php_curl_verify_handlers()
251 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_verify_handlers()
252 ch->handlers->write_header->fp = 0; in _php_curl_verify_handlers()
253 ch->handlers->write_header->stream = NULL; in _php_curl_verify_handlers()
255 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_verify_handlers()
1229 php_curl_write *t = ch->handlers->write_header; in curl_write_header()
1441 (*ch)->handlers->write_header = ecalloc(1, sizeof(php_curl_write)); in alloc_curl_handle()
1450 (*ch)->handlers->write_header->stream = NULL; in alloc_curl_handle()
1568 ch->handlers->write_header->method = PHP_CURL_IGNORE; in PHP_FUNCTION()
1646 dupch->handlers->write_header->method = ch->handlers->write_header->method; in PHP_FUNCTION()
1647 if (ch->handlers->write_header->stream) { in PHP_FUNCTION()
1648 Z_ADDREF_P(ch->handlers->write_header->stream); in PHP_FUNCTION()
1650 dupch->handlers->write_header->stream = ch->handlers->write_header->stream; in PHP_FUNCTION()
1653 dupch->handlers->write_header->fp = ch->handlers->write_header->fp; in PHP_FUNCTION()
1671 if (ch->handlers->write_header->func_name) { in PHP_FUNCTION()
1672 zval_add_ref(&ch->handlers->write_header->func_name); in PHP_FUNCTION()
1673 dupch->handlers->write_header->func_name = ch->handlers->write_header->func_name; in PHP_FUNCTION()
1945 if (ch->handlers->write_header->stream) { in _php_curl_setopt()
1946 Z_DELREF_P(ch->handlers->write_header->stream); in _php_curl_setopt()
1949 ch->handlers->write_header->fp = fp; in _php_curl_setopt()
1950 ch->handlers->write_header->method = PHP_CURL_FILE; in _php_curl_setopt()
1951 ch->handlers->write_header->stream = *zvalue; in _php_curl_setopt()
2035 if (ch->handlers->write_header->func_name) { in _php_curl_setopt()
2036 zval_ptr_dtor(&ch->handlers->write_header->func_name); in _php_curl_setopt()
2037 ch->handlers->write_header->fci_cache = empty_fcall_info_cache; in _php_curl_setopt()
2040 ch->handlers->write_header->func_name = *zvalue; in _php_curl_setopt()
2041 ch->handlers->write_header->method = PHP_CURL_USER; in _php_curl_setopt()
2376 if (ch->handlers->write_header->method == PHP_CURL_FILE && ch->handlers->write_header->fp) { in PHP_FUNCTION()
2377 fflush(ch->handlers->write_header->fp); in PHP_FUNCTION()
2712 if (ch->handlers->write_header->func_name) { in _php_curl_close_ex()
2713 zval_ptr_dtor(&ch->handlers->write_header->func_name); in _php_curl_close_ex()
2728 if (ch->handlers->write_header->stream) { in _php_curl_close_ex()
2729 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_close_ex()
2739 efree(ch->handlers->write_header); in _php_curl_close_ex()