Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/xampp/php/pear/tests/ |
<?php if (@include(dirname(__FILE__)."/../Find.php")) { $status = ''; } else if (@include('File/Find.php')) { $status = ''; } else { $status = 'skip - PEAR File_Find class is not available'; return; } $tmpdir = (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? getenv('TMP') : '/tmp'; chdir($tmpdir); @mkdir('File_Find/'); @mkdir('File_Find/dir'); touch('File_Find/dir/1.txt'); touch('File_Find/dir/2.txt'); @mkdir('File_Find/dir/dir2'); touch('File_Find/dir/dir2/3.bak'); touch('File_Find/dir/dir2/3.txt'); @mkdir('File_Find/dir/dir3'); touch('File_Find/dir/dir3/4.bak'); touch('File_Find/dir/dir3/4.txt'); @mkdir('File_Find/dir/txtdir'); touch('File_Find/dir/txtdir/5.txt'); @mkdir('File_Find/dir2/'); @mkdir('File_Find/dir2/0'); touch('File_Find/dir2/0/1.txt'); @mkdir('File_Find/dir2/1'); touch('File_Find/dir2/1/1.txt'); @mkdir('File_Find/dir2/2'); touch('File_Find/dir2/2/1.txt'); ?>