So, I'm writing a PHP programme that uses APC for it's caching mechanism. I'm using TravisCI for my continuous integration and testing it on PHP 5.3, 5.4 and 5.5. The tests for APC pass for v5.3 and 5.4, but fail on 5.5 with the following message...
PHP Warning: PHP Startup: Unable to load dynamic library
'/home/travis/.phpenv/versions/5.5.0beta1/lib/php/extensions/no-debug-non-zts-20121212/apc.so' - /home/travis/.phpenv/versions/5.5.0beta1/lib/php/extensions/no-debug-non-zts-20121212/apc.so:
cannot open shared object file: No such file or directory in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library
'/home/travis/.phpenv/versions/5.5.0beta1/lib/php/extensions/no-debug-non-zts-20121212/apc.so' - /home/travis/.phpenv/versions/5.5.0beta1/lib/php/extensions/no-debug-non-zts-20121212/apc.so:
cannot open shared object file: No such file or directory in Unknown on line 0
My .travis.yml file looks like this
## YAML Template.
---
language: php
php:
- "5.5"
- "5.4"
- "5.3"
before_script: phpenv config-add tests/config.ini
script: phpunit --configuration phpunit.xml
My tests/config.ini file looks like this
extension="apc.so"
apc.enabled=1
apc.enable_cli=1
Can anyone shed some light as to why I can get APC working in v5.3 and 5.4, but not in 5.5? Is this an issue with PHP, or an issue with Travis?