#25793 [Com]: special POST or GET query crashes PHP under Windows
| From: | Stephen at ediassociates dot com | Date: | Wed, 08 Oct 2003 18:32:01 +0000 |
| Subject: | #25793 [Com]: special POST or GET query crashes PHP under Windows | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48741@lists.php.net to get a copy of this message | ||
ID: 25793
Comment by: Stephen at ediassociates dot com
Reported By: valyala at tut dot by
Status: Open
Bug Type: Reproducible crash
Operating System: Win2k sp3
PHP Version: 4.3.3
New Comment:
Close, mine doesn't crash the server; however, it doesn't return any
values.
My link is "http://localhost/login/link.php?SesId=67394710"
but when I place the following code in link.php I get "The sessionId
is" and nothing else.
<?php
print("The sessionId is $_GET[SesID]");
?>
Previous Comments:
------------------------------------------------------------------------
[2003-10-08 09:34:18] valyala at tut dot by
Description:
------------
this query strings crashes PHP under Windows:
1[]
437378[index]
232[index]=value&something_else
the query string must begins with any decimal number, following braces
with optional index string.
Sorry for my English :)
Reproduce code:
---------------
GET /any_php_script.php?1[] HTTP/1.1
Expected result:
----------------
If my script looks like this:
<?php
print_r($_GET);
?>
I expected:
Array
(
[1] => Array
(
[0] =>
)
)
Actual result:
--------------
No response headers received because request failed :
ERROR_INTERNET_CONNECTION_RESET
And windows shows error message: "Apache.exe has generated errors and
will be closed by Windows. You will need to restart the program"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25793&edit=1