Arquivos
hhvm/hphp/test/quick/file_read.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

16 linhas
303 B
PHP

<?php
$f = tmpfile();
fwrite($f, "foo.bar.baz");
fseek($f, 0);
var_dump(fread($f, 3));
fseek($f, 1, SEEK_CUR);
var_dump(fread($f, 3));
fseek($f, 1, SEEK_CUR);
var_dump(fread($f, 3));
fseek($f, 0, SEEK_SET);
var_dump(fread($f,3));
fwrite($f,"guzzle");
fseek($f, 0);
var_dump(fread($f,1000));
fclose($f);