Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/standard/tests/dir/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/standard/tests/dir/dir_bug73971.phpt |
--TEST-- Bug #73971 Filename got limited to MAX_PATH on Win32 when scan directory --SKIPIF-- <?php if (substr(PHP_OS, 0, 3) != 'WIN') { die("skip Valid only on Windows"); } ?> --FILE-- <?php $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73971"; $filename = $base . DIRECTORY_SEPARATOR . str_repeat('テスト', 48); // 144 glyph here, less than 256 mkdir($base); mkdir($filename); // created correctly var_dump(basename($filename)); // 432 bytes here, more than 256 echo "\ntest dir()\n"; $d = dir($base); while (false !== ($entry = $d->read())) { var_dump($entry); } $d->close(); echo "\ntest DirectoryIterator\n"; $dir = new DirectoryIterator($base); foreach ($dir as $finfo) { var_dump($finfo->getFilename()); } ?> ==DONE== --CLEAN-- <?php $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73971"; $filename = $base . DIRECTORY_SEPARATOR . str_repeat('テスト', 48); rmdir($filename); rmdir($base); ?> --EXPECTF-- string(432) "テストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテスト" test dir() string(1) "." string(2) ".." string(432) "テストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテスト" test DirectoryIterator string(1) "." string(2) ".." string(432) "テストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテスト" ==DONE==
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare