Skip to content
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

php warning and error #8

Closed
nangong92t opened this issue Aug 8, 2016 · 5 comments
Closed

php warning and error #8

nangong92t opened this issue Aug 8, 2016 · 5 comments

Comments

@nangong92t
Copy link
Contributor

run examples/hello.php

show php warning:
Warning: Wrong parameter count for PGDemo::Hello1()

or show----

nginx error:
[error] 12199#0: *471 recv() failed (104: Connection reset by peer) while reading response header from upstream,

php version 5.6 nginx+php-fpm
go version 1.6

@kitech
Copy link
Owner

kitech commented Aug 8, 2016

can you try run hello.php on console: php -f examples/hello.php

@kitech
Copy link
Owner

kitech commented Aug 10, 2016

confirmed, thanks.

case 1: if nginx return 200

the nginx-error.log will show php warning: Warning: Wrong parameter count for PGDemo::Hello1()

but will get the method's return value.

and the php-fpm will not crash.

case 2: if nginx return 502

the nginx-error.log will show: [error] 12199#0: *471 recv() failed (104: Connection reset by peer) while reading response header from upstream,

no method return value

and the php-fpm will crash.

@kitech
Copy link
Owner

kitech commented Aug 11, 2016

fixed case 1 now

@nangong92t
Copy link
Contributor Author

其实你可以说中文

@kitech
Copy link
Owner

kitech commented Aug 11, 2016

wow, see this, think good: #5 (comment)

nangong92t added a commit to nangong92t/php-go that referenced this issue Aug 11, 2016
	nginx-error.log will show: [error] 12199#0: *471 recv() failed (104: Connection reset by peer) while reading response header from upstream,
	kitech#8

Signed-off-by: monkey <nangong92t@gmail.com>
nangong92t added a commit to nangong92t/php-go that referenced this issue Aug 11, 2016
	nginx-error.log will show: [error] 12199#0: *471 recv() failed (104: Connection reset by peer) while reading response header from upstream,
	kitech#8

Signed-off-by: monkey <nangong92t@gmail.com>
nangong92t added a commit to nangong92t/php-go that referenced this issue Aug 11, 2016
Signed-off-by: monkey <nangong92t@gmail.com>
nangong92t added a commit to nangong92t/php-go that referenced this issue Aug 11, 2016
Signed-off-by: monkey <nangong92t@gmail.com>
nangong92t added a commit to nangong92t/php-go that referenced this issue Aug 11, 2016
	kitech#8

Signed-off-by: monkey <nangong92t@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants