Bug #80378 [Com]: syntax error in php://input

From: Date: Wed, 18 Nov 2020 12:47:58 +0000
Subject: Bug #80378 [Com]: syntax error in php://input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230428@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80378&edit=1 ID: 80378 Comment by: 306503207 at qq dot com Reported by: 306503207 at qq dot com Summary: syntax error in php://input Status: Feedback Type: Bug Package: FPM related Operating System: CentOS Linux release 7.4.1708 PHP Version: 7.2.34 Block user comment: N Private report: N New Comment: Thanks Previous Comments: ------------------------------------------------------------------------ [2020-11-18 12:37:46] daverandom@php.net Impossible to say because there is not enough information here to diagnose the problem. It could be an issue with opcache, in which case it is likely that an upgrade would fix the issue, yes. Please note that PHP 8 is nearing release, and 7.0 has been unsupported for a long time. You really need to update PHP to a supported version as soon as possible, regardless of the issue you are currently experiencing. ------------------------------------------------------------------------ [2020-11-18 12:31:05] 306503207 at qq dot com The higher version may have the same problem. Has this bug been fixed? ------------------------------------------------------------------------ [2020-11-18 12:17:35] daverandom@php.net https://www.php.net/supported-versions.php ------------------------------------------------------------------------ [2020-11-18 12:16:41] daverandom@php.net Please clarify which PHP version you are using. Note that the 7.0.x branch is no longer supported. ------------------------------------------------------------------------ [2020-11-18 12:14:32] 306503207 at qq dot com Description: ------------ 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 Parse error: syntax error, unexpected '{' in php://input on line 3" while reading response header from upstream PHP Parse error: syntax error, unexpected '{' in php://input on line 3" while reading response header from upstream Suddenly, this problem appears. After restarting php-fpm, the problem disappears. After a while, the problem reappears. The problem occurred in PHP-7.0.16. I update to PHP-7.0.33, but problems still arise. Test script: --------------- nginx + php-fpm ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80378&edit=1

« previous php.bugs (#230428) next »