Create post-HADVAs expect files
[hiphop-php.git] / hphp / test / zend / good / ext / standard / tests / file / bug39673.php
blobfa9be28d9cf87a8fe7a0f910b1ff1b4c920e1583
1 <?hh
2 <<__EntryPoint>> function main(): void {
3 $str = str_repeat("test", 3456);
5 $filename = __SystemLib\hphp_test_tmppath('bug39673.txt');
6 file_put_contents($filename, $str);
8 $offsets = varray[
9 -1,
11 3456*4,
12 3456*4 - 1,
13 3456*4 + 1,
14 2000,
15 5000,
16 100000,
20 foreach ($offsets as $offset) {
21 $r = file_get_contents($filename, false, null, $offset);
22 var_dump(strlen($r));
25 @unlink($filename);
26 echo "Done\n";