You are not logged in.

#1 2012-04-18 03:46:59

act28
Member
Registered: 2011-07-11
Posts: 10

PHP has no bzip2 functions

Not sure if this is a packaging issue or not. If it isn't please move it to the right forum.

For some reason, PHP 5.3.10 (cli) can't find the bzip2 functions, even though I do have bzip2 installed, and I can clearly see that PHP was compiled --with-bz2=shared.

# php -r "echo bzcompress('hello');"
PHP Fatal error:  Call to undefined function bzcompress() in Command line code on line 1

What's even more strange is:

# php -i | grep 'bzip'
bzip2 compression => disabled (install pecl/bz2)

System info:

  • 3.3.2-1-ARCH

  • bzip2-1.0.6-3 - is definitely installed

  • PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb  6 2012 19:18:12) - I assume this is 5.3.10-4 from Extra (since I don't have testing enabled)

Anyone else come across this? Or was it something I fubared? More importantly, how do I fix it? I've tried uninstalling php (and deps) and reinstalling it, but still go no.

TIA

Last edited by act28 (2012-04-18 03:47:51)

Offline

#2 2012-04-18 07:21:57

teekay
Member
Registered: 2011-10-26
Posts: 271

Re: PHP has no bzip2 functions

Do you have "extension=bz2.so" enabled in /etc/php/php.ini?

Offline

#3 2012-04-18 21:42:28

act28
Member
Registered: 2011-07-11
Posts: 10

Re: PHP has no bzip2 functions

Duh... thanks. That was it. Didn't think I had to manually enable it. Doh!

Offline

Board footer

Powered by FluxBB