You are not logged in.
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 1What'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
Do you have "extension=bz2.so" enabled in /etc/php/php.ini?
Offline
Duh... thanks. That was it. Didn't think I had to manually enable it. Doh!
Offline