/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ext/zlib/tests/gzrewind_basic2.phpt
28 строк
579 B
Gina Peter Banyard
ext/zlib: Refactor tests (#18887)
21 июн 2025, 20:03
Не верифицирован
21 июн 2025, 20:03
5bd18e3
Код
Авторство
О чём код?
--TEST-- Test function gzrewind() by calling it with its expected arguments when reading --EXTENSIONS-- zlib --FILE-- <?php $f = __DIR__."/data/test.txt.gz"; $h = gzopen($f, 'r'); // read to the end of the file echo "read to the end of the file, then rewind\n"; gzread($h, 10000); var_dump(gzeof($h)); var_dump(gztell($h)); gzrewind($h); var_dump(gzeof($h)); var_dump(gztell($h)); echo "first 20 characters=".gzread($h,20)."\n"; gzclose($h); ?> --EXPECT-- read to the end of the file, then rewind bool(true) int(176) bool(false) int(0) first 20 characters=When you're taught t