Lines Matching refs:data
8 function testcurl($ch, $postname, $data, $mime = null)
12 $file = new CURLStringFile($data, $postname);
14 $file = new CURLStringFile($data, $postname, $mime);
26 $data = "test\0test";
27 var_dump(md5($data));
28 testcurl($ch, 'foo.txt', $data);
29 testcurl($ch, 'foo.txt', $data, 'text/plain');
30 testcurl($ch, '', $data);
32 testcurl($ch, "foo.txt\0broken_string", $data, "text/plain\0broken_string");
35 $file = new CURLStringFile($data, 'foo.txt');
39 var_dump(md5($file->data));
44 $old = new CURLStringFile($data, 'foo.txt', 'text/plain');
51 $file = new CURLStringFile($data, 'foo.txt', 'text/plain');
57 $file = new CURLStringFile($data, 'foo.txt', 'text/plain');
64 $file = new CURLStringFile($data, 'foo.txt', 'text/plain');
65 $data =& $file->data;