326 Star 1.6K Fork 345

GVPswoole / swoole-src

 / 详情

协程无法正常切回call_user_func

Done
Opened this issue  
2017-03-12 19:23

环境信息

[root@Shimmer ~]# cat /etc/issue
CentOS release 6.8 (Final)
Kernel \r on an \m
[root@Shimmer ~]# cat /proc/version
Linux version 2.6.32-642.11.1.el6.x86_64 (mockbuild@c1bm.rdu2.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) ) #1 SMP Fri Nov 18 19:25:05 UTC 2016
[root@Shimmer ~]# php -v
PHP 7.1.2 (cli) (built: Feb 25 2017 13:04:59) ( ZTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.1.2, Copyright (c) 1999-2017, by Zend Technologies
[root@Shimmer ~]# php -i | grep 'Configure Command'
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--enable-inline-optimization' '--disable-debug' '--disable-rpath' '--enable-shared' '--enable-opcache' '--enable-fpm' '--with-fpm-user=nginx' '--with-fpm-group=nginx' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-gettext' '--enable-mbstring' '--with-iconv=/usr/local' '--with-mcrypt' '--with-mhash' '--with-openssl' '--enable-bcmath' '--enable-soap' '--with-libxml-dir' '--enable-pcntl' '--enable-shmop' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-sockets' '--with-curl' '--with-zlib' '--enable-zip' '--with-bz2' '--with-readline' '--with-gd' '--enable-maintainer-zts'
[root@Shimmer ~]#php -i | grep swoole
swoole
swoole support => enabled
swoole.aio_thread_num => 2 => 2
swoole.display_errors => On => On
swoole.message_queue_key => 0 => 0
swoole.unixsock_buffer_size => 8388608 => 8388608
swoole.use_namespace => On => On
[root@Shimmer ~]# php -r "var_dump(SWOOLE_VERSION);"
string(5) "2.0.6"

测试代码

链接:https://eyun.baidu.com/s/3mhZj0WK 密码:hdKM

描述

执行php start.php后,访问127.0.0.1:9501,控制台输出内容如下:

[root@Shimmer ~]# php start.php
CALL_USER_FUNC START

call_user_func后面的代码均没有执行

代码

Comments (1)

泷涯 created 任务
泷涯 updated 任务
泷涯 closed 任务

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
128324 littlehz 1578918812 10096 sy 1578914684
C
1
https://gitee.com/swoole/swoole.git
git@gitee.com:swoole/swoole.git
swoole
swoole
swoole-src

Search

53164aa7 5694891 3bd8fe86 5694891