Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apc info fail with php7 #40

Closed
brunoMaurice opened this issue Jul 26, 2016 · 3 comments
Closed

Apc info fail with php7 #40

brunoMaurice opened this issue Jul 26, 2016 · 3 comments
Labels

Comments

@brunoMaurice
Copy link

Hi,

The "apc:cache:info" options fail with php-fpm 7.0:

/vagrant$ sudo -u www-data -g www-data php cachetool.phar apc:cache:info --fcgi=/var/run/php/php7.0-fpm.sock

Fatal error: Uncaught TypeError: Argument 1 passed to CacheTool\Command\ApcCacheInfoCommand::normalize() must be of the type array, null given, called in phar:///vagrant/cachetool.phar/src/CacheTool/Command/ApcCacheInfoCommand.php on line 61 and defined in phar:///vagrant/cachetool.phar/src/CacheTool/Command/ApcCacheInfoCommand.php on line 102

TypeError: Argument 1 passed to CacheTool\Command\ApcCacheInfoCommand::normalize() must be of the type array, null given, called in phar:///vagrant/cachetool.phar/src/CacheTool/Command/ApcCacheInfoCommand.php on line 61 in phar:///vagrant/cachetool.phar/src/CacheTool/Command/ApcCacheInfoCommand.php on line 102

Call Stack:
    0.0191    1047000   1. {main}() /vagrant/cachetool.phar:0
    0.0192    1045920   2. require('phar:///vagrant/cachetool.phar/bin/cachetool') /vagrant/cachetool.phar:10
    0.0480    2307112   3. Symfony\Component\Console\Application->run() phar:///vagrant/cachetool.phar/bin/cachetool:35
    0.0535    2612528   4. CacheTool\Console\Application->doRun() phar:///vagrant/cachetool.phar/vendor/symfony/console/Application.php:117
    0.0547    2650640   5. Symfony\Component\Console\Application->doRun() phar:///vagrant/cachetool.phar/src/CacheTool/Console/Application.php:119
    0.0549    2650640   6. CacheTool\Console\Application->doRunCommand() phar:///vagrant/cachetool.phar/vendor/symfony/console/Application.php:186
    0.1319    3076336   7. Symfony\Component\Console\Application->doRunCommand() phar:///vagrant/cachetool.phar/src/CacheTool/Console/Application.php:136
    0.1320    3076336   8. Symfony\Component\Console\Command\Command->run() phar:///vagrant/cachetool.phar/vendor/symfony/console/Application.php:791
    0.1330    3079080   9. CacheTool\Command\ApcCacheInfoCommand->execute() phar:///vagrant/cachetool.phar/vendor/symfony/console/Command/Command.php:256
    0.1772    3119848  10. CacheTool\Command\ApcCacheInfoCommand->normalize() phar:///vagrant/cachetool.phar/src/CacheTool/Command/ApcCacheInfoCommand.php:61


Variables in local scope (#10):
  $array = NULL
  $key = *uninitialized*
  $value = *uninitialized*

@szepeviktor
Copy link
Contributor

szepeviktor commented Dec 15, 2016

There is no APC extension for PHP7
http://php.net/manual/en/intro.apc.php
Try cachetool.phar apcu:cache:info

@Grummfy
Copy link

Grummfy commented Apr 6, 2017

cf #49 ?

@gordalina
Copy link
Owner

Use apcu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants