Lines Matching refs:write_header

179 	if (ch->handlers->write_header && !Z_ISUNDEF(ch->handlers->write_header->stream)) {  in _php_curl_verify_handlers()
180 …stream = (php_stream *)zend_fetch_resource2_ex(&ch->handlers->write_header->stream, NULL, php_file… in _php_curl_verify_handlers()
185 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_verify_handlers()
186 ZVAL_UNDEF(&ch->handlers->write_header->stream); in _php_curl_verify_handlers()
187 ch->handlers->write_header->fp = 0; in _php_curl_verify_handlers()
189 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_verify_handlers()
1280 if (curl->handlers->write_header) { in curl_get_gc()
1281 zend_get_gc_buffer_add_zval(gc_buffer, &curl->handlers->write_header->func_name); in curl_get_gc()
1282 zend_get_gc_buffer_add_zval(gc_buffer, &curl->handlers->write_header->stream); in curl_get_gc()
1574 php_curl_write *t = ch->handlers->write_header; in curl_write_header()
1761 ch->handlers->write_header = ecalloc(1, sizeof(php_curl_write)); in init_curl_handle()
1873 ch->handlers->write_header->method = PHP_CURL_IGNORE; in PHP_FUNCTION()
1898 ch->handlers->write_header->method = source->handlers->write_header->method; in _php_setup_easy_copy_handlers()
1899 if (!Z_ISUNDEF(source->handlers->write_header->stream)) { in _php_setup_easy_copy_handlers()
1900 Z_ADDREF(source->handlers->write_header->stream); in _php_setup_easy_copy_handlers()
1902 ch->handlers->write_header->stream = source->handlers->write_header->stream; in _php_setup_easy_copy_handlers()
1905 ch->handlers->write_header->fp = source->handlers->write_header->fp; in _php_setup_easy_copy_handlers()
1915 if (!Z_ISUNDEF(source->handlers->write_header->func_name)) { in _php_setup_easy_copy_handlers()
1916 ZVAL_COPY(&ch->handlers->write_header->func_name, &source->handlers->write_header->func_name); in _php_setup_easy_copy_handlers()
2567 if (!Z_ISUNDEF(ch->handlers->write_header->stream)) { in _php_curl_setopt()
2568 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_setopt()
2569 ZVAL_UNDEF(&ch->handlers->write_header->stream); in _php_curl_setopt()
2571 ch->handlers->write_header->fp = NULL; in _php_curl_setopt()
2572 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_setopt()
2574 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_setopt()
2575 ch->handlers->write_header->fp = fp; in _php_curl_setopt()
2576 ch->handlers->write_header->method = PHP_CURL_FILE; in _php_curl_setopt()
2577 ZVAL_COPY(&ch->handlers->write_header->stream, zvalue); in _php_curl_setopt()
2718 if (!Z_ISUNDEF(ch->handlers->write_header->func_name)) { in _php_curl_setopt()
2719 zval_ptr_dtor(&ch->handlers->write_header->func_name); in _php_curl_setopt()
2720 ch->handlers->write_header->fci_cache = empty_fcall_info_cache; in _php_curl_setopt()
2722 ZVAL_COPY(&ch->handlers->write_header->func_name, zvalue); in _php_curl_setopt()
2723 ch->handlers->write_header->method = PHP_CURL_USER; in _php_curl_setopt()
2998 if (ch->handlers->write_header->method == PHP_CURL_FILE && ch->handlers->write_header->fp) { in PHP_FUNCTION()
2999 fflush(ch->handlers->write_header->fp); in PHP_FUNCTION()
3365 zval_ptr_dtor(&ch->handlers->write_header->func_name); in curl_free_obj()
3371 zval_ptr_dtor(&ch->handlers->write_header->stream); in curl_free_obj()
3376 efree(ch->handlers->write_header); in curl_free_obj()
3430 if (!Z_ISUNDEF(ch->handlers->write_header->stream)) { in _php_curl_reset_handlers()
3431 zval_ptr_dtor(&ch->handlers->write_header->stream); in _php_curl_reset_handlers()
3432 ZVAL_UNDEF(&ch->handlers->write_header->stream); in _php_curl_reset_handlers()
3434 ch->handlers->write_header->fp = NULL; in _php_curl_reset_handlers()
3435 ch->handlers->write_header->method = PHP_CURL_IGNORE; in _php_curl_reset_handlers()