-
-
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
Connection reset when DI has more than 10 arguments #12299
Comments
If using php-fpm(possibly you need to source something too like in apache below).
if you are using apache2 php handler:
refresh your browser Connection reset most likely means seg fault or something similar, if this don't work then just check https://bugs.php.net/bugs-generating-backtrace.php here to how generate backtrace. Also you possibly have already somewhere core dump. Then just do |
Backtrace:
|
The 2.1.x branch is not longer supported. Could you please try v3? |
@sergeyklay @Jurigag ok, it works on v3 and PHP7. I created repo to reproduce this error: https://github.com/Zaszczyk/vokuro. It is needed to run indexAction in indexController. |
https://github.com/phalcon/cphalcon/releases is your (everyone's) friend. |
@Jurigag @sergeyklay i'm sorry but something in the air. I came back to this task and switched to machine with PHP7 and got same error this time. So I executed Jurigag's procedure and got:
PHP 7.0.11-1+deb.sury.org
|
This certain stack is totally useless. |
Well on php 7 i couldn't manage to get any stacktrace which could tell anything. On php 5.6 there is this:
@andresgutierrez any idea ? I will try to reproduce a problem in zephir only. |
@Zaszczyk Could you please try now by using latest Zephir: git clone git@github.com:phalcon/cphalcon.git
cd cphalcon
git checkout 3.1.x # or 3.2.x
zephir fullclean
zephir build |
@Zaszczyk yea i was writing him that this was fixed, i thing it can be closed |
I create service in DI:
It works perfect until I set 11 arguments, it such situation I got Connection Reset/ERR_EMPTY_RESPONSE. I got errors only when call this service:
$this->getDI()->get('Company\TariffService');
How can I debug it?
PHP 5.6
Phalcon 2.1.x
Ubuntu 14.04
The text was updated successfully, but these errors were encountered: