Annotation of embedaddon/php/ext/standard/tests/file/002.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: File/Stream functions
3: --FILE--
4: <?php
5:
6: $data = <<<EOD
7: blah blah blah blah blah blah blah
8: blah blah blah blah blah blah blah
9: blah blah blah blah blah blah blah
10: blah blah blah blah blah blah blah
11: blah blah blah blah blah blah blah
12: blah blah blah blah blah blah blah
13: blah blah blah blah blah blah blah
14: blah blah blah blah blah blah blah
15: blah blah blah blah blah blah blah
16: blah blah blah blah blah blah blah
17: blah blah blah blah blah blah blah
18: blah blah blah blah blah blah blah
19: blah blah blah blah blah blah blah
20: blah blah blah blah blah blah blah
21: blah blah blah blah blah blah blah
22: blah blah blah blah blah blah blah
23: EOD;
24:
25: $name = tempnam("./ext/standard/tests/file/", "php");
26: $fp = fopen($name, "w");
27: fwrite($fp, $data);
28: fclose($fp);
29:
30: //readfile($name);
31: echo file_get_contents($name);
32:
33: unlink($name);
34:
35: ?>
36: --EXPECT--
37: blah blah blah blah blah blah blah
38: blah blah blah blah blah blah blah
39: blah blah blah blah blah blah blah
40: blah blah blah blah blah blah blah
41: blah blah blah blah blah blah blah
42: blah blah blah blah blah blah blah
43: blah blah blah blah blah blah blah
44: blah blah blah blah blah blah blah
45: blah blah blah blah blah blah blah
46: blah blah blah blah blah blah blah
47: blah blah blah blah blah blah blah
48: blah blah blah blah blah blah blah
49: blah blah blah blah blah blah blah
50: blah blah blah blah blah blah blah
51: blah blah blah blah blah blah blah
52: blah blah blah blah blah blah blah
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>