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

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 3 different diffs reported by users for this test.

Count Diff
1 (33%)
001+ Warning: Phar::extractTo(): Permission denied in %s/bug54289.php on line 13 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/opt/php/ext/phar/tests/bug54289/test.phar" failed: Cannot extract "dirA/fileA", could not create directory "/opt/php/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('/opt/php/ext/ph...', 'dirA/', true) 006+ #1 {main} 007+ thrown in %s/bug54289.php on line 13
1 (33%)
001+ Warning: Phar::extractTo(): Permission denied in %s/bug54289.php on line 13 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/home/gzhong/php-7.4.6/ext/phar/tests/bug54289/test.phar" failed: Cannot extract "dirA/fileB", could not create directory "/home/gzhong/php-7.4.6/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/gzhong/ph...', 'dirA/', true) 006+ #1 {main} 007+ thrown in %s/bug54289.php on line 13
1 (33%)
001+ Warning: Phar::extractTo(): Permission denied in %s/bug54289.php on line 13 002+ 003+ Fatal error: Uncaught PharException: Extraction from phar "/home/centos/php-src-php-7.4.6/ext/phar/tests/bug54289/test.phar" failed: Cannot extract "dirA/fileA", could not create directory "/home/centos/php-src-php-7.4.6/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/centos/ph...', 'dirA/', true) 006+ #1 {main} 007+ thrown in %s/bug54289.php on line 13