12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- --TEST--
- File/Stream functions
- --FILE--
- <?php
- $data = <<<EOD
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- EOD;
- $name = tempnam("./ext/standard/tests/file/", "php");
- $fp = fopen($name, "w");
- fwrite($fp, $data);
- fclose($fp);
- //readfile($name);
- echo file_get_contents($name);
- unlink($name);
- ?>
- --EXPECT--
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
- blah blah blah blah blah blah blah
|