/hphp/test/slow/string_length_overflow/fread.php

http://github.com/facebook/hiphop-php · PHP · 8 lines · 7 code · 1 blank · 0 comment · 0 complexity · f498c8edf1d607c4c3909ef97ce29e70 MD5 · raw file

  1. <?hh
  2. <<__EntryPoint>>
  3. function main_fread() {
  4. $f = fopen('/dev/zero', 'r');
  5. fread($f, 1<<32);
  6. print "Done\n";
  7. }