Edit report at https://bugs.php.net/bug.php?id=70108&edit=1
ID: 70108
Updated by: laruence@php.net
Reported by: bugzilla77 at gmail dot com
Summary: sometimes empty $_SERVER['QUERY_STRING']
Status: Open
Type: Bug
Package: *General Issues
Operating System: Win7 32/64
PHP Version: 7.0.0beta1
Block user comment: N
Private report: N
New Comment:
I can not reproduce this with php-fpm (linux centos 6.4). maybe a windows special issue?
Previous Comments:
------------------------------------------------------------------------
[2015-07-22 12:11:44] bugzilla77 at gmail dot com
I have default Apache httpd.conf plus:
PHPINIDir c:/php7
LoadModule php7_module c:/php7/php7apache2_4.dll
AddType application/x-httpd-php .php
PS What is MPM abbreviation?
------------------------------------------------------------------------
[2015-07-22 09:28:28] yohgaki@php.net
Which MPM you're using?
------------------------------------------------------------------------
[2015-07-22 07:11:49] bugzilla77 at gmail dot com
PS.
$_SERVER['REQUEST_URI'] is also bugy
------------------------------------------------------------------------
[2015-07-22 07:07:47] bugzilla77 at gmail dot com
Description:
------------
Sometimes empty $_SERVER['QUERY_STRING']
Tested on four servers (32 or 64bit Windows 7).
Apache 2.4.16 Win64
http://www.apachelounge.com/download/VC14/binaries/httpd-2.4.16-win64-VC14.zip
Apache 2.4.16 Win32
http://www.apachelounge.com/download/VC14/binaries/httpd-2.4.16-win32-VC14.zip
MS Visual C++ 2015 Redistributable 14.0.23026
https://go.microsoft.com/fwlink/?LinkId=615459https://go.microsoft.com/fwlink/?LinkId=615460
PHP Thread Safe as Apache module.
---
I discovered this problem because I use "get.php?_____" to get page images.
PHP 7.0.0beta1 does not display all images on pages.
---
If I replace PHP 7.0.0beta1 to PHP 5.6.11 the problem does not exists. Only PHP 7.0.0beta1.
Test script:
---------------
query.php
---------
<?php
print($_SERVER['QUERY_STRING']?:'NO QUERY_STRING');
?>
query.html
----------
<!DOCTYPE html>
<html>
<body>
<div>Try F5 (reload). PHP 7.0.0 beta 1</div>
<iframe style="width:500px;height:30px"
src="query.php?01"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?02"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?03"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?04"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?05"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?06"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?07"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?08"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?09"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?10"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?11"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?12"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?13"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?14"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?15"></iframe><br/>
<iframe style="width:500px;height:30px"
src="query.php?16"></iframe><br/>
</body>
</html>
Expected result:
----------------
digits in all lines
Actual result:
--------------
"NO QUERY_STRING" in some lines
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70108&edit=1