Lines Matching refs:cb_arg
1805 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) *cb_arg_p; in curl_free_cb_arg() local
1807 ZEND_ASSERT(cb_arg->stream == NULL); in curl_free_cb_arg()
1808 zend_string_release(cb_arg->filename); in curl_free_cb_arg()
1809 efree(cb_arg); in curl_free_cb_arg()
2110 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in read_cb() local
2113 if (cb_arg->stream == NULL) { in read_cb()
2114 …if (!(cb_arg->stream = php_stream_open_wrapper(ZSTR_VAL(cb_arg->filename), "rb", IGNORE_PATH, NULL… in read_cb()
2118 numread = php_stream_read(cb_arg->stream, buffer, nitems * size); in read_cb()
2120 php_stream_close(cb_arg->stream); in read_cb()
2121 cb_arg->stream = NULL; in read_cb()
2130 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in seek_cb() local
2133 if (cb_arg->stream == NULL) { in seek_cb()
2136 res = php_stream_seek(cb_arg->stream, offset, origin); in seek_cb()
2143 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in free_cb() local
2145 if (cb_arg->stream != NULL) { in free_cb()
2146 php_stream_close(cb_arg->stream); in free_cb()
2147 cb_arg->stream = NULL; in free_cb()
2201 struct mime_data_cb_arg *cb_arg; in build_mime_structure_from_hash() local
2242 cb_arg = emalloc(sizeof *cb_arg); in build_mime_structure_from_hash()
2243 cb_arg->filename = zend_string_copy(postval); in build_mime_structure_from_hash()
2244 cb_arg->stream = stream; in build_mime_structure_from_hash()
2252 …|| (form_error = curl_mime_data_cb(part, filesize, read_cb, seekfunc, free_cb, cb_arg)) != CURLE_OK in build_mime_structure_from_hash()
2257 zend_llist_add_element(&ch->to_free->stream, &cb_arg); in build_mime_structure_from_hash()