当前位置: 首页 > 工具软件 > Guzzle-Swoole > 使用案例 >

php swoole hyperf,Uncaught Swoole\Error on execute php bin/hyperf.php start

百里阳平
2023-12-01

php

PHP 7.3.6 (cli) (built: Jun 17 2019 08:40:34) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies

with Zend OPcache v7.3.6, Copyright (c) 1999-2018, by Zend Technologies

swoole:

swoole

Swoole => enabled

Author => Swoole Team

Version => 4.4.0-beta

Built => Jun 20 2019 14:36:39

coroutine => enabled

kqueue => enabled

rwlock => enabled

http2 => enabled

pcre => enabled

zlib => enabled

brotli => enabled

async_redis => enabled

Directive => Local Value => Master Value

swoole.enable_coroutine => On => On

swoole.enable_library => On => On

swoole.enable_preemptive_scheduler => Off => Off

swoole.display_errors => On => On

swoole.use_shortname => On => On

swoole.unixsock_buffer_size => 262144 => 262144

Error detail:

Scanning ...

Scan completed.

[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Paginator\Listener\PageResolverListener listener.

[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.

PHP Fatal error: Uncaught Swoole\Error: API must be called in the coroutine in /www/hyperf/vendor/symfony/console/Terminal.php:127

Stack trace:

#0 /www/hyperf/vendor/symfony/console/Terminal.php(127): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)

#1 /www/hyperf/vendor/symfony/console/Terminal.php(70): Symfony\Component\Console\Terminal::getSttyColumns()

#2 /www/hyperf/vendor/symfony/console/Terminal.php(51): Symfony\Component\Console\Terminal::initDimensions()

#3 /www/hyperf/vendor/symfony/console/Application.php(116): Symfony\Component\Console\Terminal->getHeight()

#4 /www/hyperf/bin/hyperf.php(22): Symfony\Component\Console\Application->run()

#5 /www/hyperf/bin/hyperf.php(23): {closure}()

#6 {main}

thrown in /www/hyperf/vendor/symfony/console/Terminal.php on line 127

Fatal error: Uncaught Swoole\Error: API must be called in the coroutine in /www/hyperf/vendor/symfony/console/Terminal.php:127

Stack trace:

#0 /www/hyperf/vendor/symfony/console/Terminal.php(127): proc_open('stty -a | grep ...', Array, NULL, NULL, NULL, Array)

#1 /www/hyperf/vendor/symfony/console/Terminal.php(70): Symfony\Component\Console\Terminal::getSttyColumns()

#2 /www/hyperf/vendor/symfony/console/Terminal.php(51): Symfony\Component\Console\Terminal::initDimensions()

#3 /www/hyperf/vendor/symfony/console/Application.php(116): Symfony\Component\Console\Terminal->getHeight()

#4 /www/hyperf/bin/hyperf.php(22): Symfony\Component\Console\Application->run()

#5 /www/hyperf/bin/hyperf.php(23): {closure}()

#6 {main}

thrown in /www/hyperf/vendor/symfony/console/Terminal.php on line 127

 类似资料:

相关阅读

相关文章

相关问答