Test: /ext/phar/tests/bug64931/bug64931.phpt - Version 7.2.20        

Bug #64931 phar_add_file is too restrive on filename
Submitted: 2013-05-27 15:43:35 Modified:
From: william.martin Assigned:
Status: Closed Package: PHAR related
PHP Version: 5.4.15 OS: Linux

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
002- CAUGHT: Cannot create any files in magic ".phar" directory
003- CAUGHT: Cannot create any files in magic ".phar" directory
004- CAUGHT: Cannot create any files in magic ".phar" directory
005- CAUGHT: Cannot create any files in magic ".phar" directory
003+ Fatal error: Uncaught RuntimeException: phar error: unable to open file "/root/php-7.2.20/ext/phar/tests/bug64931/src/.pharignore" to add to phar archive in %s/bug64931.php:7
004+ Stack trace:
007- Warning: Phar::addFromString() expects parameter 1 to be a valid path, string given in %s%ebug64931.php on line %d
008- ===DONE===
005+ #0 %s/bug64931.php(7): Phar->addFile('/root/php-7.2.2...', '.pharignore')
006+ #1 {main}
007+ thrown in %s/bug64931.php on line 7