PHP Classes

bug in dZip.inc.php

Recommend this page to a friend!

      dUnzip2  >  All threads  >  bug in dZip.inc.php  >  (Un) Subscribe thread alerts  
Subject:bug in dZip.inc.php
Summary:$zip->addFile(false,'xml/content.xml', '',"the data");
Messages:1
Author:sichernich
Date:2007-01-13 18:46:59
 

  1. bug in dZip.inc.php   Reply   Report abuse  
Picture of sichernich sichernich - 2007-01-13 18:46:59
The lib supports to add a string to the zip file.

Syntax:

require_once("dZip.inc.php");


$zip = new dZip("filename.zip");
$zip->addFile(false,'dir/filenameinzip', '',"the data");
$zip->save();

But there is a bug:

Line 39 should be:
$details['uncsize'] = strlen($data);