Lines Matching refs:cb_arg

993 	struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) *cb_arg_p;  in curl_free_cb_arg()  local
995 ZEND_ASSERT(cb_arg->stream == NULL); in curl_free_cb_arg()
996 zend_string_release(cb_arg->filename); in curl_free_cb_arg()
997 efree(cb_arg); in curl_free_cb_arg()
1296 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in read_cb() local
1299 if (cb_arg->stream == NULL) { in read_cb()
1300 …if (!(cb_arg->stream = php_stream_open_wrapper(ZSTR_VAL(cb_arg->filename), "rb", IGNORE_PATH, NULL… in read_cb()
1304 numread = php_stream_read(cb_arg->stream, buffer, nitems * size); in read_cb()
1306 php_stream_close(cb_arg->stream); in read_cb()
1307 cb_arg->stream = NULL; in read_cb()
1316 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in seek_cb() local
1319 if (cb_arg->stream == NULL) { in seek_cb()
1322 res = php_stream_seek(cb_arg->stream, offset, origin); in seek_cb()
1329 struct mime_data_cb_arg *cb_arg = (struct mime_data_cb_arg *) arg; in free_cb() local
1331 if (cb_arg->stream != NULL) { in free_cb()
1332 php_stream_close(cb_arg->stream); in free_cb()
1333 cb_arg->stream = NULL; in free_cb()
1431 struct mime_data_cb_arg *cb_arg; in build_mime_structure_from_hash() local
1472 cb_arg = emalloc(sizeof *cb_arg); in build_mime_structure_from_hash()
1473 cb_arg->filename = zend_string_copy(postval); in build_mime_structure_from_hash()
1474 cb_arg->stream = stream; in build_mime_structure_from_hash()
1482 …|| (form_error = curl_mime_data_cb(part, filesize, read_cb, seekfunc, free_cb, cb_arg)) != CURLE_OK in build_mime_structure_from_hash()
1487 zend_llist_add_element(&ch->to_free->stream, &cb_arg); in build_mime_structure_from_hash()