krakjoe / apcu-bc

APCu Backwards Compatiblity Module
Other
33 stars 15 forks source link

Extension doesn't load #9

Closed crisbarros closed 8 years ago

crisbarros commented 8 years ago

I got this error after successfully compiling:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/apc.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/apc.so: undefined symbol: zif_apcu_store in Unknown on line 0

I'm using PHP 7.0.0: PHP Api Version: 20151012

krakjoe commented 8 years ago

You have apcu loaded ?

marc-mabe commented 8 years ago

I have the same error on travis - see https://travis-ci.org/marc-mabe/zend-cache/jobs/98016459

It's installing first apcu and then apcu_bc using pecl install

kimjuan commented 8 years ago

I set the priority of apc after apcu and it is working.

lrwxrwxrwx 1 root root   31 Jan  2 17:53 20-apcu.ini -> /etc/php/mods-available/apcu.ini
lrwxrwxrwx 1 root root   31 Jan  2 17:53 21-apc.ini -> /etc/php/mods-available/apc.ini
remicollet commented 8 years ago

Related to downstream using dlopen(RTLD_NOW). So, yes, extension ini file name have to be managed to ensure correct load order.