Lines Matching refs:write

193 	if (ch->handlers->write && !Z_ISUNDEF(ch->handlers->write->stream)) {  in _php_curl_verify_handlers()
194 …stream = (php_stream *)zend_fetch_resource2_ex(&ch->handlers->write->stream, NULL, php_file_le_str… in _php_curl_verify_handlers()
199 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_verify_handlers()
200 ZVAL_UNDEF(&ch->handlers->write->stream); in _php_curl_verify_handlers()
201 ch->handlers->write->fp = 0; in _php_curl_verify_handlers()
203 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_verify_handlers()
1275 if (curl->handlers->write) { in curl_get_gc()
1276 zend_get_gc_buffer_add_zval(gc_buffer, &curl->handlers->write->func_name); in curl_get_gc()
1277 zend_get_gc_buffer_add_zval(gc_buffer, &curl->handlers->write->stream); in curl_get_gc()
1352 php_curl_write *t = ch->handlers->write; in curl_write()
1581 if (ch->handlers->write->method == PHP_CURL_RETURN && length > 0) { in curl_write_header()
1582 smart_str_appendl(&ch->handlers->write->buf, data, (int) length); in curl_write_header()
1760 ch->handlers->write = ecalloc(1, sizeof(php_curl_write)); in init_curl_handle()
1871 ch->handlers->write->method = PHP_CURL_STDOUT; in PHP_FUNCTION()
1888 if (!Z_ISUNDEF(source->handlers->write->stream)) { in _php_setup_easy_copy_handlers()
1889 Z_ADDREF(source->handlers->write->stream); in _php_setup_easy_copy_handlers()
1891 ch->handlers->write->stream = source->handlers->write->stream; in _php_setup_easy_copy_handlers()
1892 ch->handlers->write->method = source->handlers->write->method; in _php_setup_easy_copy_handlers()
1904 ch->handlers->write->fp = source->handlers->write->fp; in _php_setup_easy_copy_handlers()
1909 if (!Z_ISUNDEF(source->handlers->write->func_name)) { in _php_setup_easy_copy_handlers()
1910 ZVAL_COPY(&ch->handlers->write->func_name, &source->handlers->write->func_name); in _php_setup_easy_copy_handlers()
2549 if (!Z_ISUNDEF(ch->handlers->write->stream)) { in _php_curl_setopt()
2550 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_setopt()
2551 ZVAL_UNDEF(&ch->handlers->write->stream); in _php_curl_setopt()
2553 ch->handlers->write->fp = NULL; in _php_curl_setopt()
2554 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_setopt()
2556 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_setopt()
2557 ch->handlers->write->fp = fp; in _php_curl_setopt()
2558 ch->handlers->write->method = PHP_CURL_FILE; in _php_curl_setopt()
2559 ZVAL_COPY(&ch->handlers->write->stream, zvalue); in _php_curl_setopt()
2770 ch->handlers->write->method = PHP_CURL_RETURN; in _php_curl_setopt()
2772 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_setopt()
2777 if (!Z_ISUNDEF(ch->handlers->write->func_name)) { in _php_curl_setopt()
2778 zval_ptr_dtor(&ch->handlers->write->func_name); in _php_curl_setopt()
2779 ch->handlers->write->fci_cache = empty_fcall_info_cache; in _php_curl_setopt()
2781 ZVAL_COPY(&ch->handlers->write->func_name, zvalue); in _php_curl_setopt()
2782 ch->handlers->write->method = PHP_CURL_USER; in _php_curl_setopt()
2945 smart_str_free(&ch->handlers->write->buf); in _php_curl_cleanup_handle()
2977 smart_str_free(&ch->handlers->write->buf); in PHP_FUNCTION()
2989 if (ch->handlers->write->method == PHP_CURL_RETURN && ch->handlers->write->buf.s) { in PHP_FUNCTION()
2990 smart_str_0(&ch->handlers->write->buf); in PHP_FUNCTION()
2991 RETURN_STR_COPY(ch->handlers->write->buf.s); in PHP_FUNCTION()
2995 if (ch->handlers->write->method == PHP_CURL_FILE && ch->handlers->write->fp) { in PHP_FUNCTION()
2996 fflush(ch->handlers->write->fp); in PHP_FUNCTION()
3002 if (ch->handlers->write->method == PHP_CURL_RETURN) { in PHP_FUNCTION()
3362 smart_str_free(&ch->handlers->write->buf); in curl_free_obj()
3363 zval_ptr_dtor(&ch->handlers->write->func_name); in curl_free_obj()
3372 zval_ptr_dtor(&ch->handlers->write->stream); in curl_free_obj()
3375 efree(ch->handlers->write); in curl_free_obj()
3423 if (!Z_ISUNDEF(ch->handlers->write->stream)) { in _php_curl_reset_handlers()
3424 zval_ptr_dtor(&ch->handlers->write->stream); in _php_curl_reset_handlers()
3425 ZVAL_UNDEF(&ch->handlers->write->stream); in _php_curl_reset_handlers()
3427 ch->handlers->write->fp = NULL; in _php_curl_reset_handlers()
3428 ch->handlers->write->method = PHP_CURL_STDOUT; in _php_curl_reset_handlers()