Bug #66972 [Fbk->NoF]: $ZipArchive->addFile() don't see phar-inside file
| From: | php-bugs at lists dot php dot net | Date: | Sun, 13 Jun 2021 04:22:13 +0000 |
| Subject: | Bug #66972 [Fbk->NoF]: $ZipArchive->addFile() don't see phar-inside file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234375@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66972&edit=1
ID: 66972
Updated by: php-bugs@lists.php.net
Reported by: sailormax at inbox dot lv
Summary: $ZipArchive->addFile() don't see phar-inside file
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Zip Related
PHP Version: master-Git-2014-03-28 (Git)
Assigned To: cmb
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2021-05-31 14:42:29] cmb@php.net
So, is this still an issue with any of the actively supported PHP
versions[1]?
[1] <https://www.php.net/supported-versions.php>
------------------------------------------------------------------------
[2014-04-02 20:35:38] sailormax at inbox dot lv
Actually I compressed PHPWord ( https://phpword.codeplex.com ) and result has this error.
I'll retest my sample little later.
thank you.
------------------------------------------------------------------------
[2014-04-02 08:02:24] ab@php.net
Can't reproduce. Does this work from cli for you? It only fails by a real error, like if
embed.xml doesn't exits.
------------------------------------------------------------------------
[2014-03-28 15:08:31] sailormax at inbox dot lv
Description:
------------
Looks like $ZipArchive->addFile() don't see source file, if it placed near the executed
script inside PHAR.
Steps:
1. create phar-file with:
- embed.xml with any data;
- index.php with:
~~~~
$objZip = new ZipArchive();
$objZip->open("test.zip", ZIPARCHIVE::CREATE);
$objZip->addFile(dirname(__FILE__) . '/embed.xml', 'test/embed.xml');
$objZip->close();
~~~~
Exp: test.zip with embed.xml
Act: test.zip without embed.xml . addFile() return false;
Test script:
---------------
$objZip = new ZipArchive();
$objZip->open("test.zip", ZIPARCHIVE::CREATE);
$objZip->addFile(dirname(__FILE__) . '/embed.xml', 'test/embed.xml');
$objZip->close();
Expected result:
----------------
test.zip with embed.xml
Actual result:
--------------
test.zip without embed.xml . addFile() return false;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66972&edit=1