Bug #77208 [Fbk->Nab]: $_POST and other server superglobals become 'unset'

From: Date: Thu, 29 Nov 2018 20:44:28 +0000
Subject: Bug #77208 [Fbk->Nab]: $_POST and other server superglobals become 'unset'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218217@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77208&edit=1 ID: 77208 Updated by: ab@php.net Reported by: duncan dot courts at codex-atc dot com Summary: $_POST and other server superglobals become 'unset' -Status: Feedback +Status: Not a bug Type: Bug Package: Apache2 related Operating System: Windows 7 Professional PHP Version: 7.1.24 Block user comment: N Private report: N New Comment: Thanks for the further info. Please upgrade PHP to at least 7.2, thread safety issues like this have been fixed there. Or, if you have to use 7.1, please use a non thread safe SAPI. Thanks. Previous Comments: ------------------------------------------------------------------------ [2018-11-29 11:53:08] duncan dot courts at codex-atc dot com > Thanks for the report. Do you use PHP as Apache module? Yes, as part of Bitnami WAMPstack. ------------------------------------------------------------------------ [2018-11-28 21:06:50] ab@php.net Thanks for the report. Do you use PHP as Apache module? Thanks. ------------------------------------------------------------------------ [2018-11-27 11:01:30] duncan dot courts at codex-atc dot com Description: ------------ After a period of normal operation, $_POST 'disappears' and isset() returns false. Restarting Apache instantly restores normal operation. The same has occurred with $_COOKIE, $_REQUEST, and $_SERVER, but not at the same time as $_POST. This has happened on different servers at different sites running the same PHP code. Occurrence frequency varies a lot, but can occur as little as a couple of hours after restart. There are no resource limitations and everything else appears normal. None of my code modifies the superglobals, only reads single array elements into other named variables. Apache version is 2.4.35. Test script: --------------- print_r($_POST); // Normal operation - prints Array() // After fault appears - prints nothing isset($_POST); // Normal operation - returns TRUE // After fault appears - returns FALSE ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77208&edit=1

« previous php.bugs (#218217) next »