php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25793 special POST or GET query crashes PHP under Windows
Submitted: 2003-10-08 09:34 UTC Modified: 2003-10-14 12:35 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: valyala at tut dot by Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.3.3RC1 - RC4 OS: Win2k sp3, WinXP, Win2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: valyala at tut dot by
New email:
PHP Version: OS:

 

 [2003-10-08 09:34 UTC] 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"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-13 03:26 UTC] sniper@php.net
I can not reproduce this within WinXP + Apache2 (PHP as apache2 module). 

What SAPI module are you using? (isapi,apache1/2, CGI binary..) Webserver?

 [2003-10-13 09:23 UTC] valyala at tut dot by
I am using Apache 1.3.27 webserver.
This string is in apache's httpd.conf file:
LoadModule php4_module "c:/usr/bin/php/sapi/php4apache.dll"
 [2003-10-14 12:34 UTC] sniper@php.net
You're doing something wrong, I can NOT reproduce this.
Make sure you actually have ONLY one php4ts.dll, etc. in your system.

 [2003-10-14 12:35 UTC] sniper@php.net
Could not reproduce with PHP 4.3.4RC2-dev, that is.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 14:01:32 2024 UTC