Test: /ext/phar/tests/bug70433.phpt - Version 5.5.33-dev        

Security #70433 Uninitialized pointer in phar_make_dirstream when zip entry filename is "/"
Submitted: 2015-09-05 11:42:46 Modified: 2015-10-11 10:53:55
From: hugh Assigned: kaplan
Status: Closed Package: PHAR related
PHP Version: 5.6Git-2015-09-05 (Git) OS: Linux

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

Count Diff
2 (50%)
001+ Fatal error: Uncaught exception 'UnexpectedValueException' with message 'phar error: end of central directory not found in zip-based phar "/home/travis/build/php/php-src/ext/phar/tests/bug70433.zip"' in %s/bug70433.php:2
002+ Stack trace:
003+ #0 %s/bug70433.php(2): PharData->__construct('/home/travis/bu...')
004+ #1 {main}
005+ thrown in %s/bug70433.php on line 2
001- object(PharData)#1 (3) {
002- ["pathName":"SplFileInfo":private]=>
003- string(0) ""
004- ["glob":"DirectoryIterator":private]=>
005- bool(false)
006- ["subPathName":"RecursiveDirectoryIterator":private]=>
007- string(0) ""
008- }
009- NULL
010- DONE
2 (50%)
001+ Fatal error: Uncaught exception 'UnexpectedValueException' with message 'phar error: end of central directory not found in zip-based phar "/home/travis/build/smalyshev/php-src/ext/phar/tests/bug70433.zip"' in %s/bug70433.php:2
002+ Stack trace:
003+ #0 %s/bug70433.php(2): PharData->__construct('/home/travis/bu...')
004+ #1 {main}
005+ thrown in %s/bug70433.php on line 2
001- object(PharData)#1 (3) {
002- ["pathName":"SplFileInfo":private]=>
003- string(0) ""
004- ["glob":"DirectoryIterator":private]=>
005- bool(false)
006- ["subPathName":"RecursiveDirectoryIterator":private]=>
007- string(0) ""
008- }
009- NULL
010- DONE