Bug #73554 [Com]: undefined _GET

From: Date: Tue, 21 Mar 2017 19:42:27 +0000
Subject: Bug #73554 [Com]: undefined _GET
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207987@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73554&edit=1 ID: 73554 Comment by: mtanalin at yandex dot ru Reported by: frank dot hartmann at netfira dot com Summary: undefined _GET Status: Open Type: Bug Package: Apache2 related Operating System: Windows Server 2008 R2 64bit PHP Version: 7.0.13 Block user comment: N Private report: N New Comment: I have the undefined variable: _GET issue using PHP 7.1.3 running via Apache 2.4.25 (ApacheLounge.com 32-bit build from 2017-01-27) under Windows 7 SP1 (64 bit). I believe this issue is specific to PHP 7 since I never encountered it when used PHP 5.x. Previous Comments: ------------------------------------------------------------------------ [2016-12-05 08:29:53] php at rhickmott dot co dot uk It's not just $_GET none of the superglobals seem to be set. I have tried disabling Just in Time on superglobals to no avail. The higher the load on a server the worse the problem comes. ------------------------------------------------------------------------ [2016-11-18 12:16:26] p at dri dot com I've been experiencing this on PHP 7.0.9 production, Windows 10 Pro and Windows 7 Pro (latest updates/SP for each). Thought I was going crazy or broke my setup, but glad to know it's not just me. Seems to be after a random amount of time, but right after a slightly slower request to the server. ------------------------------------------------------------------------ [2016-11-17 13:24:52] frank dot hartmann at netfira dot com Note that $_REQUEST is set but $_GET is not and this happens under various versions of Apache and PHP ------------------------------------------------------------------------ [2016-11-17 13:06:12] frank dot hartmann at netfira dot com Description: ------------ I am quite confident that I encounter the same problem as described in these two questions: http://stackoverflow.com/questions/37463287/undefined-variable-get-after-a-period-of-time http://stackoverflow.com/questions/36150812/undefined-variable-get/37448703#37448703 After some arbitrary time (at least a few hours) the $_GET-Variable in any script is suddenly not set anymore. The only - and unacceptable - solution seems to be to restart Apache. This is now happening on a development and production server with the following characteristics. Dev: Windows Server 2008 R2 Datacenter 64bit, Apache 2.4.23, PHP 7.0.13 Prod: Windows Server 2008 R2 Datacenter 64bit, Apache 2.4.4, PHP 7.0.6 This is the codesnippet in a simple index.php <?php print_r($_POST); print_r($_GET); print_r($_REQUEST); print_r($HTTP_GET_VARS); echo "Hello World!"; Yielding the following Output in the browser by calling http://127.0.0.1/index.php?testGet=testValue: >Array ( ) > >Notice: Undefined variable: _GET in C:\Apache2.4\www\index.php on line 3 > >Array ( [testGet] => testValue ) > >Notice: Undefined variable: HTTP_GET_VARS in C:\Apache2.4\www\index.php on line 5 > >Hello World! The logs show no signs of any misbehavior and the processes respond (but slower than usual). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73554&edit=1

« previous php.bugs (#207987) next »