From: v-altruo at microsoft dot com Operating system: Windows PHP version: 7.2.19 Package: Testing related Bug Type: Bug Bug description:Extra files in output
Description: ------------ Fails across all builds (NTS/TS) regardless of opcache on/off. The extra files are lines 3, 8, 9 (index.php, testit, testit/exisiting.txt) Test file location: ext\phar\tests\phar_extract.phpt Expected result: ---------------- %sextract%cfile1.txt %sextract%cfile2.txt %sextract%cone %sextract%csubdir %sextract%csubdir%cectory %sextract%csubdir%cectory%cfile.txt string(2) "hi" string(3) "hi3" string(3) "hi2" bool(false) Invalid argument, expected a filename (string) or array of filenames Warning: Phar::extractTo() expects parameter 1 to be a valid path, array given in %sphar_extract.php on line %d Invalid argument, extraction path must be non-zero length Unable to use path "%soops" for extraction, it is a file, must be a directory Invalid argument, array of filenames to extract contains non-string value Extraction from phar "%stempmanifest1.phar.php" failed: Cannot extract "file1.txt" to "%sextract/file1.txt", path already exists string(5) "first" string(2) "hi" Cannot extract to "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...", destination directory is too long for filesystem Extraction from phar "%stempmanifest1.phar.php" failed: Cannot extract "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..." to "%s...", extracted filename is too long for filesystem ===DONE=== Actual result: -------------- C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/file1.txt C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/file2.txt C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/index.php C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/one C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/subdir C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/subdir/ectory C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/subdir/ectory/file.txt C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/testit C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/testit/existing.txt string(2) "hi" string(3) "hi3" string(3) "hi2" bool(false) Invalid argument, expected a filename (string) or array of filenames Warning: Phar::extractTo() expects parameter 1 to be a valid path, array given in C:/../php-test-pack-7.2.19/ext/phar/tests/phar_extract.php on line 44 Invalid argument, extraction path must be non-zero length Unable to use path "C:\..\php-test-pack-7.2.19\ext\phar\tests/oops" for extraction, it is a file, must be a directory Invalid argument, array of filenames to extract contains non-string value Extraction from phar "C:/../php-test-pack-7.2.19/ext/phar/tests/tempmanifest1.phar.php" failed: Cannot extract "file1.txt" to "C:\..\php-test-pack-7.2.19\ext\phar\tests/extract/file1.txt", path already exists string(5) "first" string(2) "hi" Cannot extract to "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...", destination directory is too long for filesystem Extraction from phar "C:/../php-test-pack-7.2.19/ext/phar/tests/tempmanifest1.phar.php" failed: Cannot extract "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..." to "C:\..\php-test-pack-7.2.19\ext\phar\tests/extract...", extracted filename is too long for filesystem ===DONE=== -- Edit bug report at https://bugs.php.net/bug.php?id=78117&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78117&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78117&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78117&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78117&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78117&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78117&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78117&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78117&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78117&r=support Expected behavior: https://bugs.php.net/fix.php?id=78117&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78117&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78117&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78117&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78117&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78117&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78117&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78117&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78117&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78117&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78117&r=mysqlcfg