Bug #70108 [Com]: sometimes empty $_SERVER['QUERY_STRING']

From: Date: Wed, 22 Jul 2015 07:11:50 +0000
Subject: Bug #70108 [Com]: sometimes empty $_SERVER['QUERY_STRING']
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194603@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70108&edit=1 ID: 70108 Comment by: bugzilla77 at gmail dot com 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: PS. $_SERVER['REQUEST_URI'] is also bugy Previous Comments: ------------------------------------------------------------------------ [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=615459 https://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

« previous php.bugs (#194603) next »