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

From: Date: Wed, 28 Apr 2021 13:36:24 +0000
Subject: Bug #80378 [Com]: syntax error in php://input
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233608@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: ahirsch29 at gmail dot com Reported by: 306503207 at qq dot com Summary: syntax error in php://input Status: No 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: I got the same Problem. When posting Data to a url i Get the follwoing error: Parse error: syntax error, unexpected identifier "version" in php://input on line 1 My XML as an example looks like this: <?xml version="1.0" encoding="UTF-8"?> <cXML> </cXML> I am only reading the content with $post = file_get_contents('php://input‘); It looks like it's trying to parse it. "Suddenly, this problem appears. After restarting php-fpm, the problem disappears. After a while, the problem reappears." - I can confirm this. After killing the container the problem is gone for a while. My setup: Azure Kubernetes Cluster Apache 2.4 (Alpine) PHP-FPM 8.0.3 (Alpine) Previous Comments: ------------------------------------------------------------------------ [2020-11-18 12:47:58] 306503207 at qq dot com Thanks ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=80378 -- Edit this bug report at https://bugs.php.net/bug.php?id=80378&edit=1

« previous php.bugs (#233608) next »