Req #72046 [NEW]: PharData::buildFromIterator() directory support
| From: | tklingenberg at lastflood dot net | Date: | Sun, 17 Apr 2016 21:56:44 +0000 |
| Subject: | Req #72046 [NEW]: PharData::buildFromIterator() directory support | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200618@lists.php.net to get a copy of this message | ||
From: tklingenberg at lastflood dot net
Operating system: Linux
PHP version: 5.6.20
Package: PHAR related
Bug Type: Feature/Change Request
Bug description:PharData::buildFromIterator() directory support
Description:
------------
When building from an iterator, the iterator can return SplFileInfo
objects.
These can represent a *file* or a *directory*.
Right now each iteration is treated as a file.
It would be great to support directories as well and whenever
encountering a directory SplFileInfo to add it's path as empty directory
(compare PharData::addEmptyDir())
--
Edit bug report at https://bugs.php.net/bug.php?id=72046&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72046&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72046&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72046&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72046&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72046&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72046&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72046&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72046&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72046&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72046&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72046&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72046&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72046&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72046&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72046&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72046&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72046&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72046&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72046&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72046&r=mysqlcfg