/hphp/test/slow/ext_socket/ftell.php
PHP | 12 lines | 11 code | 1 blank | 0 comment | 0 complexity | 306988b50f01d80f8d8d3f516850ab0a MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?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));
- }