Bug #73554 [Opn]: undefined _GET

From: Date: Thu, 17 Nov 2016 13:24:53 +0000
Subject: Bug #73554 [Opn]: undefined _GET
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205434@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 User updated by: frank dot hartmann at netfira dot com 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: Note that $_REQUEST is set but $_GET is not and this happens under various versions of Apache and PHP Previous Comments: ------------------------------------------------------------------------ [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 (#205434) next »