PATH:
opt
/
alt
/
tests
/
alt-php81-pecl-eio_3.1.3-3.el8
/
tests
--TEST-- Check for eio_sync, eio_fsync, eio_fdatasync functions' basic behaviour --FILE-- <?php error_reporting(0); $temp_filename = "eio-temp-file.tmp"; function my_close_cb($data, $result) { global $temp_filename; var_dump($result == 0); @unlink($temp_filename); } function my_fdatasync_cb($data, $result) { var_dump($result == 0); } function my_fsync_cb($data, $result) { var_dump($result == 0); } function my_sync_cb($data, $result) { var_dump($result == 0); } function my_file_opened_callback($data, $result) { var_dump($result > 0); if ($result > 0) { eio_fdatasync ($result, 0, "my_fdatasync_cb", "fdatasync"); eio_fsync ($result, 0, "my_fsync_cb", "fsync"); eio_sync (0, "my_sync_cb", "sync"); eio_event_loop(); eio_close($result, EIO_PRI_DEFAULT, "my_close_cb"); eio_event_loop(); } } eio_open($temp_filename, EIO_O_CREAT, NULL, EIO_PRI_DEFAULT, "my_file_opened_callback", NULL); eio_event_loop(); ?> --EXPECT-- bool(true) bool(true) bool(true) bool(true) bool(true)
[-] eio_fallocate_basic.phpt
[edit]
[-] eio_sendfile_sockets_php8.phpt
[edit]
[-] bug65293.phpt
[edit]
[-] eio_stat_error.phpt
[edit]
[-] eio_sync.phpt
[edit]
[-] eio_utime_basic.phpt
[edit]
[-] eio_rmdir_basic.phpt
[edit]
[-] eio_seek.phpt
[edit]
[-] eio_sendfile_basic.phpt
[edit]
[-] eio_rename_basic.phpt
[edit]
[-] eio_grp_add.phpt
[edit]
[-] eio_mknod_basic.phpt
[edit]
[-] eio_cancel_basic.phpt
[edit]
[-] eio_readdir.phpt
[edit]
[+]
..
[-] eio_sendfile_sockets.phpt
[edit]
[-] eio001.phpt
[edit]
[-] eio_open_error.phpt
[edit]
[-] eio_chown_variation.phpt
[edit]
[-] eio_read_basic.phpt
[edit]
[-] eio_custom_basic.phpt
[edit]
[-] eio_chmod_basic.phpt
[edit]
[-] fork.phpt
[edit]
[-] eio_unlink_basic.phpt
[edit]
[-] eio_truncate_basic.phpt
[edit]
[-] eio_mkdir_basic.phpt
[edit]
[-] eio_write_variation.phpt
[edit]
[-] eio_link.phpt
[edit]
[-] eio_open_basic.phpt
[edit]
[-] eio_stat_basic.phpt
[edit]