projects
/
m6w6
/
ext-psi
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
PHP 8 compatibility
[m6w6/ext-psi]
/
tests
/
stdio
/
fopen001.phpt
1
--TEST--
2
fopen
3
--INI--
4
psi.directory={PWD}/../../psi.d:{PWD}
5
--FILE--
6
===TEST===
7
<?php
8
$stream = psi\fopen(__FILE__, "r");
9
var_dump(filesize(__FILE__) === psi\fread($stream, $data));
10
var_dump(file_get_contents(__FILE__) === $data);
11
var_dump(psi\fclose($stream));
12
?>
13
===DONE===
14
--EXPECTF--
15
===TEST===
16
bool(true)
17
bool(true)
18
int(0)
19
===DONE===