[PHP] Re: uncompressing gz string

2003-10-24 Thread Adam Zey
I've had the exact same problem. I get .html.gz files uploaded to me. My
script does a file_get_contents on those, and then tried to use gzinflate or
gzuncompress. Neither works. Instead I use a shell command to use the 'gzip'
program to do the decompression.

This is a big bug that's been around a while, I'm surprised it hasn't been
fixed.

Regards, Adam.

Decapode Azur [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I don't understand why gzinflate and gzuncompress don't work?

 ?php
 $gz_content = file_get_contents('hello.txt.gz');

 echo gzinflate($gz_content);
 // Warning: data error

 echo gzuncompress($gz_content);
 // Warning: data error
 ?

 but if I make it from bash the content is there :
 cat hello.txt.gz | gunzip
 Hello!


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003

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



Re: [PHP] Re: uncompressing gz string

2003-10-24 Thread Curt Zirzow
* Thus wrote Adam Zey ([EMAIL PROTECTED]):
 I've had the exact same problem. I get .html.gz files uploaded to me. My
 script does a file_get_contents on those, and then tried to use gzinflate or
 gzuncompress. Neither works. Instead I use a shell command to use the 'gzip'
 program to do the decompression.
 
 This is a big bug that's been around a while, I'm surprised it hasn't been
 fixed.

I dont see any open issues in bugs.php.net related to this.

Curt
-- 
My PHP key is worn out

  PHP List stats since 1997: 
http://zirzow.dyndns.org/html/mlists/

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