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

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 is 1 diff reported by users for this test.

Count Diff
2 (100%)
001+ Warning: Phar::extractTo(): Permission denied in %s/bug54289.php on line 13 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/Users/liudb/Downloads/php-7.4.16/ext/phar/tests/bug54289/test.phar" failed: Cannot extract "dirA/fileB", could not create directory "/Users/liudb/Downloads/php-7.4.16/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('/Users/liudb/Do...', 'dirA/', true) 006+ #1 {main} 007+ thrown in %s/bug54289.php on line 13