ID:               47324
 Comment by:       jw328 at gmail dot com
 Reported By:      kmteoh at hotmail dot com
 Status:           No Feedback
 Bug Type:         Zip Related
 Operating System: win32 only -w2k
 PHP Version:      5.2.9RC1
 Assigned To:      pajoye
 New Comment:

Exactly the same issue - I suspect its environment related. Mine is:
IIS6, Win2003, Isapi from 5.2.8.

Have tried php_zip.dll from 5.2.8 and 5.2.10 - both are v1.8.11 and
siplay the same behaviour. Same issue looks as though its been occurring
since 2006.

Couldn't get simpler code to reproduce (invoked from browser):

  error_reporting(E_ALL);
  unlink("./a.zip");
  $zip = new ZipArchive();
  $filename = "./a.zip";
  if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
        exit("cannot open <$filename>\n");
  } else {
        echo "file <$filename> OK\n";
  }
  $zip->addFromString("ma.txt", "0123456789");
  var_dump($zip->close());
  var_dump($zip);

Having wasted the day on this I will use another library/exe.


Previous Comments:
------------------------------------------------------------------------

[2009-04-05 01:00:00] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2009-03-28 15:51:04] paj...@php.net

I've really no idea yet what's wrong. We have made some bug fixes
lately, can you try again a 5.2/5.3 snapshot please?

------------------------------------------------------------------------

[2009-03-28 15:03:11] ivan3k-sc1 at yahoo dot com dot ar

I have the same problem trying to add a file, no mather its location.
Other files are ok.

this is the content of the file
-------------------------------
<?
require_once("inc/core.php");
restore_error_handler();

?>

<hr>
<?$db = Db::getDbConnection();?>
Probando Conexión a BD: <?=($db->IsConnected() ? "OK" : "ERROR");?>

<hr>
--------------------------------

------------------------------------------------------------------------

[2009-03-02 22:45:53] paj...@php.net

ok, I still need the files you are adding to debug this problem. But it
works here, IIS5/6/7 ISAPI or FastCGI.



------------------------------------------------------------------------

[2009-03-02 22:15:15] kmteoh at hotmail dot com

$path = 'C:\\inetpub\\wwwroot\\teohm\\gus\\';  //files to add in
archive

$file = 'C:\\inetpub\\wwwroot\\teohm\\gus.zip';  //target

$zip = new ZipArchive();

if (($zip->open($file, ZipArchive::CREATE)) === TRUE) {
        archive($path, null);  //same function as previous attachment
        $zip->close();

}

i see gus.zip.a03932 and gus.zip.b03932 in
"C:\\inetpub\\wwwroot\\teohm\\"

still not working :(

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/47324

-- 
Edit this bug report at http://bugs.php.net/?id=47324&edit=1

Reply via email to