Test: /ext/phar/tests/bug54289.phpt - Version 7.4.8        

Bug #54289 Phar::extractTo() does not accept specific directories to be extracted
Submitted: 2011-03-17 10:44:06 Modified: 2018-01-06 07:26:27
From: hpdl Assigned: bishop
Status: Closed Package: PHAR related
PHP Version: 5.3.5 OS: MacOS 10.6.6

There are 2 different diffs reported by users for this test.

Count Diff
1 (50%)
001+ Warning: Phar::extractTo(): Permission denied in %s/bug54289.php on line 13 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/home/siva/Downloads/php-7.4.8/ext/phar/tests/bug54289/test.phar" failed: Cannot extract "dirA/fileB", could not create directory "/home/siva/Downloads/php-7.4.8/ext/phar/tests/bug54289/out/dirA" in %s/bug54289.php:13 004+ Stack trace: 001- bool(true) 002- bool(true) 003- bool(false) 004- done 005+ #0 %s/bug54289.php(13): Phar->extractTo('/home/siva/Down...', 'dirA/', true) 006+ #1 {main} 007+ thrown in %s/bug54289.php on line 13
1 (50%)
001+ Warning: Phar::extractTo(): Permission denied in %s/bug54289.php on line 13 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/home/alex2/Downloads/php-7.4.8/ext/phar/tests/bug54289/test.phar" failed: Cannot extract "dirA/fileA", could not create directory "/home/alex2/Downloads/php-7.4.8/ext/phar/tests/bug54289/out/dirA" in %s/bug54289.php:13 004+ Stack trace: 001- bool(true) 002- bool(true) 003- bool(false) 004- done 005+ #0 %s/bug54289.php(13): Phar->extractTo('/home/alex2/Dow...', 'dirA/', true) 006+ #1 {main} 007+ thrown in %s/bug54289.php on line 13