Bug #73554 [Opn]: undefined _GET

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=73554&edit=1

 ID:                 73554
 Updated by:         [email protected]
 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:

1. Could you disable opcache see what happens? i.e. Do not load opcache module.

2. Could you disable all modules see what happens? i.e. Do not load all modules.

2-1. If disabling all modules solves issue, could you identify which module is causing this?

3. Do you have the same issue with cli builtin server? i.e. php -S 127.0.0.1:8888 
If yes, disabling modules fixes issue or not?


Previous Comments:
------------------------------------------------------------------------
[2017-03-21 19:42:22] mtanalin at yandex dot ru

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.

------------------------------------------------------------------------
[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.