Файловый менеджер - Редактировать - /opt/alt/tests/alt-php83-pecl-eio_3.1.3-3.el8/tests/eio_stat_basic.phpt
Назад
--TEST-- Check for eio_stat, eio_lstat, eio_fstat functions' basic behaviour --FILE-- <?php error_reporting(E_ERROR); $tmp_filename = dirname(__FILE__) ."/eio-file.tmp"; //touch($tmp_filename); $fp = fopen($tmp_filename, 'w'); fwrite($fp, '123'); fclose($fp); function my_res_cb($data, $result) { var_dump($data); var_dump($result['mtime']); var_dump($result['size']); } function my_open_cb($data, $result) { global $tmp_filename; eio_fstat($result, EIO_PRI_DEFAULT, "my_res_cb", "eio_fstat"); eio_event_loop(); eio_close($result); eio_event_loop(); @unlink($tmp_filename); } eio_stat($tmp_filename, EIO_PRI_DEFAULT, "my_res_cb", "eio_stat"); eio_lstat($tmp_filename, EIO_PRI_DEFAULT, "my_res_cb", "eio_lstat"); eio_event_loop(); eio_open($tmp_filename, EIO_O_RDONLY, NULL, EIO_PRI_DEFAULT, "my_open_cb", "eio_open"); eio_event_loop(); ?> --EXPECTF-- string(%d) "eio_%stat" int(%d) int(3) string(%d) "eio_%stat" int(%d) int(3) string(%d) "eio_%stat" int(%d) int(3)
| ver. 1.6 |
Github
|
.
| PHP 8.3.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка