Skip to content

How to get APCu on PHP 7? #5956

Description

@nazar-pc

Here is sample build: https://travis-ci.org/nazar-pc/CleverStyle-CMS/builds/125947543
Config:

...
before_script:
  - mysql -e 'CREATE DATABASE `cscms.travis`;'
  - if [[ "$(php -v | grep 'PHP 5')" ]]; then echo yes | pecl install apcu-4.0.8; fi
  - if [[ "$(php -v | grep 'PHP 7')" ]]; then echo yes | pecl install apcu; fi
  - echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
...

APCu in PHP 5.6 works fine, in PHP 7 doesn't.

But if I add:

  - if [[ "$(php -v | grep 'PHP 7')" ]]; then echo 'extension = apcu.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi

Immediately I'm getting errors: https://travis-ci.org/nazar-pc/CleverStyle-CMS/jobs/125948629

There definitely is something wrong with PHP 7 setup, can't have APCu there, even though manual insertion extension = apcu.so worked in past.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions