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

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

```

3. 系统环境 docker-ubuntu

4. 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

```

5. 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

```

6. 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]WARNINGswManager_check_exit_status: worker#2 abnormal exit, status=127, signal=0

```

7. 报错代码:任意方式使用websocket server类启动运行都会有错误

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值