Lines Matching refs:cb_arg

891 	struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) *cb_arg_p;  in curl_free_cb_arg()  local
893 ZEND_ASSERT(cb_arg->stream == NULL); in curl_free_cb_arg()
894 zend_string_release(cb_arg->filename); in curl_free_cb_arg()
895 efree(cb_arg); in curl_free_cb_arg()
1233 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in read_cb() local
1236 if (cb_arg->stream == NULL) { in read_cb()
1237 …if (!(cb_arg->stream = php_stream_open_wrapper(ZSTR_VAL(cb_arg->filename), "rb", IGNORE_PATH, NULL… in read_cb()
1241 numread = php_stream_read(cb_arg->stream, buffer, nitems * size); in read_cb()
1243 php_stream_close(cb_arg->stream); in read_cb()
1244 cb_arg->stream = NULL; in read_cb()
1253 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in seek_cb() local
1256 if (cb_arg->stream == NULL) { in seek_cb()
1259 res = php_stream_seek(cb_arg->stream, offset, origin); in seek_cb()
1266 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in free_cb() local
1268 if (cb_arg->stream != NULL) { in free_cb()
1269 php_stream_close(cb_arg->stream); in free_cb()
1270 cb_arg->stream = NULL; in free_cb()
1333 struct mime_data_cb_arg *cb_arg; in build_mime_structure_from_hash() local
1372 cb_arg = emalloc(sizeof *cb_arg); in build_mime_structure_from_hash()
1373 cb_arg->filename = zend_string_copy(postval); in build_mime_structure_from_hash()
1374 cb_arg->stream = stream; in build_mime_structure_from_hash()
1382 …|| (form_error = curl_mime_data_cb(part, filesize, read_cb, seekfunc, free_cb, cb_arg)) != CURLE_OK in build_mime_structure_from_hash()
1387 zend_llist_add_element(&ch->to_free->stream, &cb_arg); in build_mime_structure_from_hash()