Page MenuHomePhabricator

APCu issues in PHP7?
Closed, DuplicatePublic

Description

Hello,
I'm using phabricator on server with debian testing with php7. Today debian released APCu module for php7. Unfortunately after installing it phabricator stopped working with this error:

2016/01/31 15:43:09 [error] 28411#28411: *31221 FastCGI sent in stderr: "PHP message: [2016-01-31 15:43:09] EXCEPTION: (Error) Call to undefined function apc_sma_info() at [<phabricator>/src/applications/cache/spec/PhabricatorDataCacheSpec.php:82]
PHP message: arcanist(head=master, ref.master=57f6fb59d739), phabricator(head=master, ref.master=6349741760a8), phutil(head=master, ref.master=f43291e99d36)
PHP message:   #0 PhabricatorDataCacheSpec::initAPCCommonSpec() called at [<phabricator>/src/applications/cache/spec/PhabricatorDataCacheSpec.php:56]
PHP message:   #1 PhabricatorDataCacheSpec::initAPCuSpec() called at [<phabricator>/src/applications/cache/spec/PhabricatorDataCacheSpec.php:23]
PHP message:   #2 PhabricatorDataCacheSpec::getActiveCacheSpec() called at [<phabricator>/src/applications/config/check/PhabricatorCacheSetupCheck.php:11]
PHP message:   #3 PhabricatorCacheSetupCheck::executeChecks() called at [<phabricator>/src/applications/config/check/PhabricatorSetupCheck.php:45]
PHP message:   #4 PhabricatorSetupCheck::runSetupChecks() called at [<phabricator>/src/applications/config/check/PhabricatorSetupCheck.php:126]
PHP message:   #5 PhabricatorSetupCheck::runAllChecks() called at [<phabricator>/src/applications/config/check/PhabricatorSetupCheck.php:91]
PHP message:   #6 PhabricatorSetupCheck::willProcessRequest() called at [<phabricator>/src/aphront/configuration/AphrontApplicationConfiguration.php:103]
PHP message:   #7 AphrontApplicationConfiguration::runHTTPRequest(AphrontPHPHTTPSink) called at [<phabricator>/webroot/index.php:17]" while reading response header from upstream, client: xxx.yyy.zzz.aaa, server: phabricator.example.com, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "phabricator.example.com"
2

Perhaps this is related to T9640: Make Phabricator compatible with PHP7? Or maybe debian apcu package is broken?

Phabricator version that I curently use:

phabricator    6349741760a84de46f6a53d57fadef3b044b15ee (Mon, Jan 25) 
arcanist    57f6fb59d73994d90cd94143787424ce0fdbf73b (Mon, Jan 25) 
phutil    f43291e99d36045bc459e5133454c0d8fd8768ea (Thu, Jan 21)

Regards