jalmenarez / minify

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

Builder app calls undefined function gzdeflate() #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Issue originally reported:
http://code.google.com/p/minify/issues/detail?id=60&can=4&colspec=ID%20Type%20St
atus%20Summary%20Priority%20Release%20Owner

Minify version: 2.1.1
PHP version: 5.2.4

What steps will reproduce the problem?
1. Visit /min/builder/ on a box w/out gzdeflate()

Actual output:Fatal error: Call to undefined function gzdeflate() in
/path/to/minify_2.1.1/min/lib/Minify.php on line 279

Did you run the unit tests? Did any FAIL? None failed, however gzdeflate
threw a warning of course.

Unfortunately enabling gzdeflate on the box in question is not an option. 
I really really wish it were.  I verified that the patch you provided in a
previous ticket has in fact been applied to v. 2.1.1, and of course it has.

Thanks for your time.

Original issue reported on code.google.com by leveillej on 17 Nov 2008 at 2:14

GoogleCodeExporter commented 9 years ago
I'm out of town for a few more days but try this: Open /min/builder/index.php 
and 
change (line 4):

$encodeOutput = ! ini_get('zlib.output_compression');

...to...

$encodeOutput = (function_exists('gzdeflate') && !ini_get
('zlib.output_compression'));

Does this fix everything?

Original comment by mrclay....@gmail.com on 18 Nov 2008 at 4:24

GoogleCodeExporter commented 9 years ago
This seems to have taken care of the issue.  I'll perform some more testing and 
let
you know if something comes up.  Thanks Steve.

Original comment by leveillej on 18 Nov 2008 at 5:09

GoogleCodeExporter commented 9 years ago
BTW, if you're out of town (presumably on vacation), shouldn't you be relaxing? 
Thanks again.

Original comment by leveillej on 18 Nov 2008 at 5:11

GoogleCodeExporter commented 9 years ago
Fixed in R275

Original comment by mrclay....@gmail.com on 16 Dec 2008 at 5:17