php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67014 PharData::buildFromDirectory and empty directories
Submitted: 2014-04-03 19:58 UTC Modified: 2015-04-12 04:22 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: emmanuel dot fournier at icoleis dot fr Assigned:
Status: No Feedback Package: PHAR related
PHP Version: 5.4.26 OS: Macos X
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 38 = ?
Subscribe to this entry?

 
 [2014-04-03 19:58 UTC] emmanuel dot fournier at icoleis dot fr
Description:
------------
---
From manual page: http://www.php.net/phar.fileformat.zip
---

This manual page say :
"Empty directories are stored in the zip archive as files with a trailing slash like my/directory/"

But PharData::buildFromDirectory don't write in archive file directories that are empty ! 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-30 13:18 UTC] mike@php.net
-Status: Open +Status: Feedback
 [2015-03-30 13:18 UTC] mike@php.net
Please elaborate.

Are you passing the empty directory as argument to PharData::buildFromDirectory()?
 [2015-04-12 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Apr 08 16:01:25 2020 UTC