Arquivos
hhvm/hphp/test/slow/ext_file/fprintf.php
T
Jordan DeLong 4795dcdc09 Migrate TestExtFile to php
I dropped a couple tests that did nothing
(e.g. clearstatcache) or almost nothing, or that 'tested' things that
almost all the tests do (e.g. unlink or fclose).  Dropped a few unixy
apis that really didn't test that they do anything.  Combined a few
tests also.
2013-06-18 16:23:23 -07:00

14 linhas
213 B
PHP

<?php
$tempfile = tempnam('/tmp', 'vmextfiletest');
$f = fopen($tempfile, 'w');
fprintf($f, "%s %s", "testing", "fprintf");
fclose($f);
$f = fopen($tempfile, "r");
fpassthru($f);
echo "\n";
unlink($tempfile);