|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2020-11-18 12:14 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
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)