#43928 [Opn]: Using periods in encapsulated variables returns white page
| From: | david dot reade at sbhelp dot co dot uk | Date: | Thu, 24 Jan 2008 14:55:27 +0000 |
| Subject: | #43928 [Opn]: Using periods in encapsulated variables returns white page | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-121510@lists.php.net to get a copy of this message | ||
ID: 43928
User updated by: david dot reade at sbhelp dot co dot uk
Reported By: david dot reade at sbhelp dot co dot uk
Status: Open
Bug Type: Variables related
Operating System: CentOS 5.1
PHP Version: 5.2.5
New Comment:
Reproduce code should actually read:
<?php
if(isset($_GET['this.is.a.test'])) {
echo('It works!'); exit();
}
if(isset($_GET['this;is;a;test'])) {
echo('It works!'); exit();
}
if(isset($_GET['this:is:a:test'])) {
echo('It works!'); exit();
}
?>
Previous Comments:
------------------------------------------------------------------------
[2008-01-24 14:54:08] david dot reade at sbhelp dot co dot uk
Description:
------------
Using dots in queries, e.g. "/index.php?this.is.a.test", which returns
a white page with no error, even with 'error_reporting(E_ALL)'. However
using any other symbol, such as a colon, returns the correct result.
Reproduce code:
---------------
<?php
if(isset($_GET['this.is.a.test'])) {
echo('It works!'); exit();
}
if(isset($_GET['this;is;a;test'])) {
echo('It works!'); exit();
}
if(isset($_GET['this;is;a;test'])) {
echo('It works!'); exit();
}
?>
Expected result:
----------------
It works!
Actual result:
--------------
/index.php?this.is.a.test = <white page, no error>
/index.php?this;is;a;test = 'It works!'
/index.php?this:is:a:test = 'It works!'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43928&edit=1