Bug #76475 [NEW]: phar buildFromIterator misses some directory informations

From: Date: Thu, 14 Jun 2018 10:38:10 +0000
Subject: Bug #76475 [NEW]: phar buildFromIterator misses some directory informations
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215716@lists.php.net to get a copy of this message
From: dams Operating system: OSX PHP version: 7.2.6 Package: PHAR related Bug Type: Bug Bug description:phar buildFromIterator misses some directory informations Description: ------------ When building a phar with addFile, it is possible to list the folders with scandir or opendir. When building the same phar with buildFromIterator, some of the folders in the phar archive can't be read. I get the following error : PHP Warning: scandir(phar:///tmp/iterator.phar/folder/sub): failed to open dir: operation failed in phar:///tmp/iterator.phar/test on line 3 Test script: --------------- The attached gist creates a few files, and build 2 phar with the same structure. The one created with iterator fails, while the other one is OK, displaying a folder listing. Expected result: ---------------- Building phar with archives allows for all folder listing. Actual result: -------------- error when using scandir, opendir in the phar. -- Edit bug report at https://bugs.php.net/bug.php?id=76475&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76475&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76475&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76475&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76475&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76475&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76475&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76475&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76475&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76475&r=support Expected behavior: https://bugs.php.net/fix.php?id=76475&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76475&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76475&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76475&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76475&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76475&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76475&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76475&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76475&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76475&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76475&r=mysqlcfg

« previous php.bugs (#215716) next »