/hphp/test/slow/ext_file/fputs.php
http://github.com/facebook/hiphop-php · PHP · 16 lines · 11 code · 5 blank · 0 comment · 0 complexity · a13aad51e82030aa13f67d60633c847b MD5 · raw file
- <?hh
- <<__EntryPoint>>
- function main_fputs() {
- $tempfile = tempnam('/tmp', 'vmextfiletest');
- $f = fopen($tempfile, 'w');
- fputs($f, "testing fputs\n");
- fclose($f);
- $f = fopen($tempfile, "r");
- fpassthru($f);
- unlink($tempfile);
- }