swoft-cloud / swoft

🚀 PHP Microservice Full Coroutine Framework
https://swoft.org
Apache License 2.0
5.58k stars 786 forks source link

Swoole async redis is enabled? No #404

Closed xfni closed 6 years ago

xfni commented 6 years ago
Q A
Bug report? no
Feature request? no
Swoft version 1.0.0
Swoole version 4.2.1 (by php --ri swoole)
PHP version 7.2.10 (by php -v)
Runtime environment Win10 Ubuntu sub system

Details

通过composer create-project swoft/swoft swoft安装 php --ri swoole中已经显示redis client => enabled 但php bin/swoft app:check中显示Swoole async redis is enabled? No

root@DESKTOP-8LIAALC:/home/app/swoft2# php --ri swoole

swoole

swoole support => enabled
Version => 4.2.1
Author => Swoole Group[email: team@swoole.com]
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
zlib => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
redis client => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.use_namespace => On => On
swoole.use_shortname => On => On
swoole.fast_serialize => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608

root@DESKTOP-8LIAALC:/home/app/swoft2# php bin/swoft app:check
PHP Warning:  Declaration of Swoft\Testing\SwooleResponse::status($code) should be compatible with Swoole\Http\Response::status($http_code, $reason = NULL) in /home/app/swoft2/vendor/swoft/framework/src/Testing/SwooleResponse.php on line 80

Warning: Declaration of Swoft\Testing\SwooleResponse::status($code) should be compatible with Swoole\Http\Response::status($http_code, $reason = NULL) in /home/app/swoft2/vendor/swoft/framework/src/Testing/SwooleResponse.php on line 80
Runtime environment check

  PHP version is greater than 7?                Yes (current is 7.2.10)
  Swoole extension is installed?                Yes
  Swoole version is greater than 2.1?           Yes (current is 4.2.1)
  Swoole async redis is enabled?                No
  Swoole coroutine is enabled?                  Yes

Extensions that conflict with 'swoole'

   - zend                                       Yes
   - xdebug                                     Yes
   - xhprof                                     Yes
   - blackfire                                  Yes

Check total: 9, Pass the check: 8
huangzhhui commented 6 years ago

@xfni please update your swoft/devtool component to v1.0.9

xfni commented 6 years ago

@xfni please update your swoft/devtool component to v1.0.9

thx