Bug #77208 [NEW]: $_POST and other server superglobals become 'unset'
| From: | duncan dot courts at codex-atc dot com | Date: | Tue, 27 Nov 2018 11:01:30 +0000 |
| Subject: | Bug #77208 [NEW]: $_POST and other server superglobals become 'unset' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218157@lists.php.net to get a copy of this message | ||
From: duncan dot courts at codex-atc dot com
Operating system: Windows 7 Professional
PHP version: 7.1.24
Package: Apache2 related
Bug Type: Bug
Bug description:$_POST and other server superglobals become 'unset'
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 bug report at https://bugs.php.net/bug.php?id=77208&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77208&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77208&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77208&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77208&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77208&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77208&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77208&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77208&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77208&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77208&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77208&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77208&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77208&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77208&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77208&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77208&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77208&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77208&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77208&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77208&r=mysqlcfg