ID: 745
Updated by: sniper@php.net
Reported By: be@shonline.de
Status: Analyzed
Bug Type: Scripting Engine problem
-Operating System: any?
+Operating System: *
-PHP Version: 4.0.6RC3
+PHP Version: 4.3.0-dev
New Comment:
Raw post data and resulting variables:
foo%5B123%5D.x=5&foo%5B123%5D.y=10
Array ( [foo] => Array ( [123] => 10 ) )
bar%5B%5D.x=5&bar%5B%5D.y=10
Array ( [bar] => Array ( [0] => 5 [1] => 10 ) )
foobar.x=5&foobar.y=10
Array ( [foobar_x] => 5 [foobar_y] => 10 )
Not very consistent..
Previous Comments:
------------------------------------------------------------------------
[2002-01-14 05:57:40] wank@wank.com
what a load of wank
------------------------------------------------------------------------
[2001-12-12 15:02:08] zak@php.net
Personally, I would rather avoid adding configuration
directives for something as small as this! :)
------------------------------------------------------------------------
[2001-12-12 14:45:10] hholzgra@php.net
i'd like to have $whatever[...][...][x] and $whatever[...][...][y] in
all cases, maybe
with ini switches for old, new or both ...
------------------------------------------------------------------------
[2001-12-12 14:33:25] zak@php.net
Maybe we should just make $foo_x[123] and $foo_y[123]
available in addition to $foo[123]? That should keep BC
and still do things right, though we might want to change
the value of $foo[123] to something like 'x,y' instead of
just y???
------------------------------------------------------------------------
[2001-12-12 14:26:34] jpm@php.net
Well, I don't believe this would be such a BC breaker. I mean, the
behavior is clearly broken and by the timespan of this report and by
the lack of discussion about this through the years, I don't think that
many people experienced this.
I would vote for a fix. :)
-- Joao
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/745--
Edit this bug report at http://bugs.php.net/?id=745&edit=1