ID:               32212
 User updated by:  gardan at gmx dot net
 Reported By:      gardan at gmx dot net
 Status:           Closed
 Bug Type:         Documentation problem
 Operating System: -
 PHP Version:      Irrelevant
 Assigned To:      vrana
 New Comment:

[EMAIL PROTECTED]: Was reported as Bug #20402


Previous Comments:
------------------------------------------------------------------------

[2005-03-07 11:34:45] [EMAIL PROTECTED]

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.



------------------------------------------------------------------------

[2005-03-07 05:39:17] [EMAIL PROTECTED]

What bug from 2002 are you talking about?

------------------------------------------------------------------------

[2005-03-07 02:56:02] gardan at gmx dot net

Description:
------------
Using a form with input name like name="foo[]" this is what is returned
for files:

$_FILES = array(1) {
  ["foo"]=>
  array(5) {
    ["name"]=>
    array(2) {
      [0]=>
      string(0) ""
      [1]=>
      string(0) ""
    }
    ["type"]=>
    array(2) {
      [0]=>
      string(0) ""
      [1]=>
      string(0) ""
    }
[...snip...]
  }
}

Expected:

$_FILES = array(1) {
  ["foo"]=>
  array(2) {
    [0]=>
    array(5) {
      [name]=>
      string(0) ""
      [type]=>
      string(0) ""
[...snip...]
    }
    [1]=>
    array(5) {
      [0]=>
      string(0) ""
      [1]=>
      string(0) ""
[...snip...]
    }
  }
}

This being highly unintuitive, though in a bug report from 2002 closed
as "won't change", should be documented.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32212&edit=1

Reply via email to