325 Star 1.6K Fork 345

GVPswoole / swoole-src

 / 详情

php7.2.4 版本 swoole的websocket,socket 报错

待办的
创建于  
2018-04-17 11:31
  1. php版本7.2.4
  2. php编译参数
./configure --prefix=$php_install_path --with-config-file-path=$php_install_path/etc --with-config-file-scan-dir=/etc/php7/phpini --with-webp-dir --with-jpeg-dir --with-png-dir --with-xpm-dir --with-freetype-dir  --with-fpm-user=www-data --with-fpm-group=www-data --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-sodium --with-pcre-regex --with-iconv --with-libzip --with-zlib --with-gd --with-openssl --with-bz2 --with-mhash --with-xmlrpc --with-curl --with-imap-ssl --with-pear --with-pcre-jit --with-fpm-user=www-data --with-fpm-group=www-data --enable-re2c-cgoto --enable-gd-native-ttf  --enable-fpm --enable-pcntl --enable-mysqlnd --enable-opcache --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --enable-libgcc --enable-zip --enable-soap --enable-xml --enable-bcmath --enable-sigchild --enable-mbregex --enable-mbstring --disable-debug --enable-inline-optimization --with-curlwrappers  --enable-bcmath
  1. 系统环境 docker-ubuntu
  2. php --ri 结果:
swoole support => enabled
Version => 2.1.3
Author => tianfeng.han[email: mikan.tenny@gmail.com]
coroutine => enabled
epoll => enabled
eventfd => enabled
timerfd => enabled
signalfd => enabled
cpu affinity => enabled
spinlock => enabled
rwlock => enabled
async http/websocket client => enabled
sockets => enabled
openssl => enabled
http2 => enabled
Linux Native AIO => enabled
zlib => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled

Directive => Local Value => Master Value
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

  1. swoole 编译参数
./configure --with-php-config=$php_install_path/bin/php-config --enable-sockets --enable-openssl --enable-http2 --enable-thread --enable-swoole --with-swoole --enable-swoole-static --enable-mysqlnd --enable-coroutine --enable-timewheel
  1. swoole 报错:
php: symbol lookup error: /m/web/php-7.2.4/lib/php/extensions/no-debug-non-zts-20170718/swoole.so: undefined symbol: php_http_parser_init
[2018-04-17 03:19:45 $57067.0]	WARNING	swManager_check_exit_status: worker#2 abnormal exit, status=127, signal=0
  1. 报错代码:任意方式使用websocket server类启动运行都会有错误

评论 (0)

phpy 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
675198 phpy 1578930557
C
1
https://gitee.com/swoole/swoole.git
git@gitee.com:swoole/swoole.git
swoole
swoole
swoole-src

搜索帮助