/hphp/test/slow/ext_socket/ftell.php
http://github.com/facebook/hiphop-php · PHP · 12 lines · 11 code · 1 blank · 0 comment · 0 complexity · 306988b50f01d80f8d8d3f516850ab0a MD5 · raw file
- <?hh
- <<__EntryPoint>>
- function main_ftell() {
- $errno = null;
- $errstr = null;
- $s = fsockopen("udp://127.0.0.1", 12345, inout $errno, inout $errstr);
- var_dump(fwrite($s, "foomeme"));
- var_dump(ftell($s));
- var_dump(fseek($s, 7, SEEK_CUR));
- var_dump(fseek($s, 3));
- }