-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phalcon + swoole core dump #14020
Comments
Try with |
There is also same problem of version 3.4.3 |
/opt/php/lib/php/extensions/no-debug-non-zts-20170718/phalcon.so You are using non-thread safe version of Phalcon. And you need to use thread safe.
|
I got a similar problem when I use ‘workerman’ that also is event-driven. I think this coredump maybe cause by _POST, but I don't know why ~~~~ |
Because swoole use coroutine. |
你可以试下 zephir-lang/zephir#1880 这个分支,看是否解决这个问题 |
请教一下如何更换phalcon自带的zephir? 找了cphalcon3.4.4目录下的文件,只找到build/php7/64bits目录下有phalcon.zep.c和phalcon.zep.h,但是这两个文件是自动生成的。 问题: 感谢 |
# Parser
$ cd /tmp
$ git clone https://github.com/phalcon/php-zephir-parser.git
$ cd php-zephir-parser
$ git checkout development # optional
$ phpize
$ ./configure
$ make
# Zephir
$ cd /tmp
$ git clone https://github.com/phalcon/zephir.git
$ cd zephir
$ git checkout development # optional
$ composer install
# Phalcon
$ cd /tmp
$ git clone https://github.com/phalcon/cphalcon.git
$ cd cphalcon
$ git checkout 3.4.x # optional
$ php -d extension=/tmp/php-zephir-parser/modules/zephir_parser.so /tmp/zephir/zephir fullclean
$ php -d extension=/tmp/php-zephir-parser/modules/zephir_parser.so /tmp/zephir/zephir generate
$ cd build
$ php gen-build.php |
The position parameter defined by the zep file has a default value
But..
|
@bugreporter001 show your code here |
|
Change it to:
|
I mean zephir removed the default value
|
I'm closing this issue due to the lack of any reaction, but if I have made an oversight, please do get back in touch so that, I'll open it again. Thanks |
Core dump!!
phalcon 3.4.2 + swoole 4.2.4
$ ab -c 100 -n 10000 "http://127.0.0.1:8080/"
Details
php --ri phalcon
) 3.4.2php -v
) 7.2.8The text was updated successfully, but these errors were encountered: