jalmenarez / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fatal error when Zlib support not present #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Minify version: 2.1.0
PHP version: 5.2.6

ERROR: PHP Fatal Error: Call to undefined function gzdeflate() in
Minify.php on line 266

I realize this is likely due to
(http://us.php.net/manual/en/zlib.installation.php) zlib not being enabled
on my server.  If I have run into this issue I'm wondering if others might
as well, and if there is an elegant way to handle the absence of gz*
functions.  

Attached is a patch that may or may not be worth anything to you.

Original issue reported on code.google.com by leveillej on 8 Oct 2008 at 1:28

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks, Jason. I made smaller changes in R255 that should achieve the same 
goal. 
I've attached a patch of these (from R254) but you're probably safe to just 
replace 
the 3 files with those in R255. Could you verfiy this works for you?

Original comment by mrclay....@gmail.com on 8 Oct 2008 at 2:27

Attachments:

GoogleCodeExporter commented 9 years ago
No problem.  My initial testing indicates that your changes are spot on!  
Thanks.

Original comment by leveillej on 8 Oct 2008 at 2:55

GoogleCodeExporter commented 9 years ago

Original comment by mrclay....@gmail.com on 8 Oct 2008 at 4:09