BntMrx
BntMrx

Reputation: 2367

php zlib gzopen not exists

I'm using Ubuntu 14.04 and php 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:08:27)

var_dump(extension_loaded('zlib')); => true
var_dump(function_exists('gzread')); => true
var_dump(function_exists('gzclose')); => true

But

var_dump(function_exists('gzopen')); => false

What's wrong ?

Thank you for ideas

Upvotes: 2

Views: 2691

Answers (1)

Moshe Katz
Moshe Katz

Reputation: 16873

This is a known bug in PHP 5.3+ when compiled against certain versions of Zlib.

There is a bug report from 2011 with several proposed fixes. However, all of the fixes will require you to recompile PHP.

Instead, you can use gzopen64. In theory, it works exactly the same way.

Upvotes: 4

Related Questions