repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Updating submodules
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_file
/
ftell.php
blob
8d59e3d26b731e15ffcfc09b61d809ab1c5b6bd0
1
<
?hh
2
3
4
<<
__EntryPoint
>>
5
function
main_ftell
() {
6
$tempfile
=
tempnam
(
'/tmp'
,
'vmextfiletest'
);
7
8
$f
=
fopen
(
$tempfile
,
'w'
);
9
fputs
(
$f
,
"testing fseek"
);
10
fclose
(
$f
);
11
12
$f
=
fopen
(
$tempfile
,
"r"
);
13
fseek
(
$f
, -
5
,
SEEK_END
);
14
var_dump
(
ftell
(
$f
));
15
16
unlink
(
$tempfile
);
17
}