X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-eio_3.1.3-1.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-eio_3.1.3-1.el8
/
tests
/
ðŸ“
..
📄
bug65293.phpt
(141 B)
📄
eio001.phpt
(187 B)
📄
eio_cancel_basic.phpt
(378 B)
📄
eio_chmod_basic.phpt
(432 B)
📄
eio_chown_variation.phpt
(1.09 KB)
📄
eio_custom_basic.phpt
(778 B)
📄
eio_fallocate_basic.phpt
(1.13 KB)
📄
eio_grp_add.phpt
(1.04 KB)
📄
eio_link.phpt
(988 B)
📄
eio_mkdir_basic.phpt
(569 B)
📄
eio_mknod_basic.phpt
(462 B)
📄
eio_open_basic.phpt
(584 B)
📄
eio_open_error.phpt
(485 B)
📄
eio_read_basic.phpt
(729 B)
📄
eio_readdir.phpt
(1.03 KB)
📄
eio_rename_basic.phpt
(592 B)
📄
eio_rmdir_basic.phpt
(507 B)
📄
eio_seek.phpt
(905 B)
📄
eio_sendfile_basic.phpt
(679 B)
📄
eio_sendfile_sockets.phpt
(1.71 KB)
📄
eio_sendfile_sockets_php8.phpt
(1.74 KB)
📄
eio_stat_basic.phpt
(984 B)
📄
eio_stat_error.phpt
(1.14 KB)
📄
eio_sync.phpt
(1011 B)
📄
eio_truncate_basic.phpt
(614 B)
📄
eio_unlink_basic.phpt
(483 B)
📄
eio_utime_basic.phpt
(521 B)
📄
eio_write_variation.phpt
(748 B)
📄
fork.phpt
(1.39 KB)
Editing: eio_chown_variation.phpt
--TEST-- Check for eio_chown function basic behaviour --SKIPIF-- <?php if (!extension_loaded('posix')) { die('SKIP The posix extension is not loaded'); } ?> --FILE-- <?php ini_set('display_errors', 'On'); ini_set('log_errors', 'Off'); $temp_filename = "eio-temp-file.tmp"; touch($temp_filename); function my_eio_chown_cb($data, $result) { var_dump($result); } if (class_exists('ArgumentCountError')) { // PHP 8+ try { eio_chown($temp_filename); } catch (ArgumentCountError $e) { trigger_error($e->getMessage(), E_USER_WARNING); } } else { eio_chown($temp_filename); } //Fatal error: Uncaught ArgumentCountError: eio_chown() expects at least 2 arguments, 1 given in /home/ruslan/projects/pecl/pecl-eio/tests/eio_chown_variation.phpt:23 eio_event_loop(); eio_chown($temp_filename, -1, -1); eio_event_loop(); eio_chown($temp_filename, posix_getuid(), -1, EIO_PRI_DEFAULT, "my_eio_chown_cb"); eio_event_loop(); ?> --CLEAN-- <?php @unlink($temp_filename); ?> --EXPECTF-- %Aeio_chown() expects at least 2 %s, 1 given%A Warning: eio_chown(): invalid uid and/or gid in %a int(0)
Upload File
Create Folder