From: "Mark Steudel" on
Warning: gzinflate() [function.gzinflate]: buffer error in
C:\php\PEAR\File\Archive\Reader\Zip.php on line 268

I'm getting the above error when I try and unzip a file.

Here's my code:

File_Archive::extract( File_Archive::read(
$path.'/'.$fileData['name'].'/'), File_Archive::toFiles($path) );

If I do:

echo $path.'/'.$fileData['name'].'/';

I get:

c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/66
/components.zip/

Now I can take that path and create a separate file:

<?php

$file = 'components.zip';
$path =
'c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/6
6';

echo $path.'/'.$file.'/';
File_Archive::extract(
File_Archive::read($path.'/'.$file.'/'),
File_Archive::toFiles($path)
);

The output is:

c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/66
/components.zip/

And this works. I can't figure out what the difference might be.

Thanks, Mark
--------------------------------------------------------------
Mark Steudel
Web Applications Developer
555 Dayton St
Suite A
Edmonds, WA 98020
p: 425.741.7014
e: mark(a)netriver.net
w: http://www.netriver.net
From: "Mark Steudel" on
This is less and less Pear related but perhaps someone might have some
experience. So I took my file unzip code, and moved to the beginning of
my script, and it unzipped the file just fine. So it seems like I'm
using up memory and there's either not enough to buffer the zip file,
which is only 210k.

Any ideas on this?

Thanks, Mark

-----Original Message-----
From: Mark Steudel
Sent: Thursday, July 20, 2006 6:00 PM
To: pear-general(a)lists.php.net
Subject: [PEAR] File_Archive: gzinflate()

Warning: gzinflate() [function.gzinflate]: buffer error in
C:\php\PEAR\File\Archive\Reader\Zip.php on line 268

I'm getting the above error when I try and unzip a file.

Here's my code:

File_Archive::extract( File_Archive::read(
$path.'/'.$fileData['name'].'/'), File_Archive::toFiles($path) );

If I do:

echo $path.'/'.$fileData['name'].'/';

I get:

c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/66
/components.zip/

Now I can take that path and create a separate file:

<?php

$file = 'components.zip';
$path =
'c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/6
6';

echo $path.'/'.$file.'/';
File_Archive::extract(
File_Archive::read($path.'/'.$file.'/'),
File_Archive::toFiles($path)
);

The output is:

c:/domains/domain/wwwroot/resources/applications/46/series/31/modules/66
/components.zip/

And this works. I can't figure out what the difference might be.

Thanks, Mark
--------------------------------------------------------------
Mark Steudel
Web Applications Developer
555 Dayton St
Suite A
Edmonds, WA 98020
p: 425.741.7014
e: mark(a)netriver.net
w: http://www.netriver.net

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php