Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.8k views
in Technique[技术] by (71.8m points)

PHP message: PHP Parse error: syntax error in php://input ?

FastCGI sent in stderr: "PHP message: PHP Warning:  Unexpected character in input:  '' (ASCII=25) sta
te=0 in php://input on line 4
PHP message: PHP Parse error:  syntax error, unexpected '' (T_STRING) in php://input on line 4" while reading response header from upstream

FastCGI sent in stderr: "PHP message: PHP Warning:  Unexpected character in input:  '' (ASCII=20) state=0 in php://input on line 3
PHP message: PHP Parse error:  syntax error, unexpected '?0' (T_STRING) in php://input on line 3" while reading response header from upstream

FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected ']' in php://input on line 5" while reading response header from upstream

这个项目稳定运行很久了,突然有这个问题,重启php-fpm之后问题消失,过一段时间问题又出现,刚开始使用php7.0.16版本,升级到php7.0.33版本,问题依然存在

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

检查php.ini,找到short_open_tag 将其参数设置为on,并重启。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...