php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58856 Allow For Complete In-Memory Handling
Submitted: 2009-09-12 14:38 UTC Modified: 2014-12-30 10:41 UTC
From: jmy at morgontech dot com Assigned:
Status: No Feedback Package: zip (PECL)
PHP Version: 5.3.0RC4 OS: CentOS 5.3 / Kernel 2.6.18-128
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-09-12 14:38 UTC] jmy at morgontech dot com
Description:
------------
Perhaps there's a way to do this via other PHP trickery, but I'd like to be able to create a small ZIP file in-memory, without any filesystem requirement.

In potentially producing hundreds of these small zip files per second, I'd rather not thrash my drives.

Reproduce code:
---------------
## Contrived Example

$zip = new ZipArchive;
$res = $zip->open();
if ($res === true) {
        $zip->addFromString('data', '<datastream>');
        $zip->close();
        echo $zip;
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-23 14:43 UTC] remi@php.net
-Status: Open +Status: Feedback
 [2014-12-30 10:41 UTC] pecl-dev 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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC