Lines Matching refs:write_header

258 	if (ch->handlers->write_header && !Z_ISUNDEF(ch->handlers->write_header->stream)) {  in _php_curl_verify_handlers()
259 …stream = (php_stream *)zend_fetch_resource2_ex(&ch->handlers->write_header->stream, NULL, php_file… in _php_curl_verify_handlers()
264 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_verify_handlers()
265 ZVAL_UNDEF(&ch->handlers->write_header->stream); in _php_curl_verify_handlers()
266 ch->handlers->write_header->fp = 0; in _php_curl_verify_handlers()
268 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_verify_handlers()
1668 php_curl_write *t = ch->handlers->write_header; in curl_write_header()
1860 ch->handlers->write_header = ecalloc(1, sizeof(php_curl_write)); in alloc_curl_handle()
1977 ch->handlers->write_header->method = PHP_CURL_IGNORE; in PHP_FUNCTION()
2029 dupch->handlers->write_header->method = ch->handlers->write_header->method; in PHP_FUNCTION()
2030 if (!Z_ISUNDEF(ch->handlers->write_header->stream)) { in PHP_FUNCTION()
2031 Z_ADDREF(ch->handlers->write_header->stream); in PHP_FUNCTION()
2033 dupch->handlers->write_header->stream = ch->handlers->write_header->stream; in PHP_FUNCTION()
2036 dupch->handlers->write_header->fp = ch->handlers->write_header->fp; in PHP_FUNCTION()
2051 if (!Z_ISUNDEF(ch->handlers->write_header->func_name)) { in PHP_FUNCTION()
2052 ZVAL_COPY(&dupch->handlers->write_header->func_name, &ch->handlers->write_header->func_name); in PHP_FUNCTION()
2488 if (!Z_ISUNDEF(ch->handlers->write_header->stream)) { in _php_curl_setopt()
2489 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_setopt()
2490 ZVAL_UNDEF(&ch->handlers->write_header->stream); in _php_curl_setopt()
2492 ch->handlers->write_header->fp = NULL; in _php_curl_setopt()
2493 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_setopt()
2495 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_setopt()
2496 ch->handlers->write_header->fp = fp; in _php_curl_setopt()
2497 ch->handlers->write_header->method = PHP_CURL_FILE; in _php_curl_setopt()
2498 ZVAL_COPY(&ch->handlers->write_header->stream, zvalue);; in _php_curl_setopt()
2652 if (!Z_ISUNDEF(ch->handlers->write_header->func_name)) { in _php_curl_setopt()
2653 zval_ptr_dtor(&ch->handlers->write_header->func_name); in _php_curl_setopt()
2654 ch->handlers->write_header->fci_cache = empty_fcall_info_cache; in _php_curl_setopt()
2656 ZVAL_COPY(&ch->handlers->write_header->func_name, zvalue); in _php_curl_setopt()
2657 ch->handlers->write_header->method = PHP_CURL_USER; in _php_curl_setopt()
3044 if (ch->handlers->write_header->method == PHP_CURL_FILE && ch->handlers->write_header->fp) { in PHP_FUNCTION()
3045 fflush(ch->handlers->write_header->fp); in PHP_FUNCTION()
3372 zval_ptr_dtor(&ch->handlers->write_header->func_name); in _php_curl_close_ex()
3381 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_close_ex()
3386 efree(ch->handlers->write_header); in _php_curl_close_ex()
3449 if (!Z_ISUNDEF(ch->handlers->write_header->stream)) { in _php_curl_reset_handlers()
3450 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_reset_handlers()
3451 ZVAL_UNDEF(&ch->handlers->write_header->stream); in _php_curl_reset_handlers()
3453 ch->handlers->write_header->fp = NULL; in _php_curl_reset_handlers()
3454 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_reset_handlers()