diff options
author | Remi Collet <remi@remirepo.net> | 2023-10-12 15:19:36 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2023-10-12 15:19:36 +0200 |
commit | 8bf3b94ac38682b4e5f1553ce0a501873dbcb855 (patch) | |
tree | 62facf14dac55546e421f85e0b8c565443a30345 /tests | |
parent | 16192a25a02e72eee26009f47bf85e0644ac3daf (diff) |
implement fstat
Diffstat (limited to 'tests')
-rw-r--r-- | tests/014-stream.phpt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/014-stream.phpt b/tests/014-stream.phpt index e8650f7..90192bf 100644 --- a/tests/014-stream.phpt +++ b/tests/014-stream.phpt @@ -12,6 +12,8 @@ $n = "rpm://" . __DIR__ . "/bidon.rpm#/usr/share/doc/bidon/README"; var_dump(in_array('rpm', stream_get_wrappers())); var_dump($f = fopen($n, "r")); +$s = fstat($f); +var_dump($s['size'], $s['mode']); var_dump(trim(fread($f, 10))); var_dump(feof($f)); var_dump(trim(fread($f, 100))); @@ -26,6 +28,8 @@ Done --EXPECTF-- bool(true) resource(%d) of type (stream) +int(29) +int(33188) string(10) "Mon Feb 12" bool(false) string(17) "13:27:47 CET 2018" |