ID:               25836
 Comment by:       tony2001 at phpclub dot net
 Reported By:      sitnikov at infonet dot ee
 Status:           Verified
 Bug Type:         *General Issues
 Operating System: Linux
 PHP Version:      4CVS, 5CVS
 New Comment:

I've reproduced it with latest CVS.
Pearsonally I really don't see any reasons to quote array indices in
this case, but there is two possible ways:
PHP should quote
1) all of them;
2) none of them.
and, as you can see, none of these ways are working with
magic_quotes_gpc=On


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

[2003-10-12 23:12:12] [EMAIL PROTECTED]

Nevermind, had of course set magic_quotes_gpc = On.


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

[2003-10-12 23:03:30] [EMAIL PROTECTED]

Can not reproduce with latest STABLE CVS.
Please provide more information how to reproduce.


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

[2003-10-11 08:57:34] sitnikov at infonet dot ee

Description:
------------
Only "first level keys" was slashed.




Reproduce code:
---------------
<?
        echo "<pre>";print_r($_POST);echo "</pre>";
?>
<form method="POST">
<input type=text name="test['aaa']['bbb']" value="'">
<input type=submit>
</form>

Expected result:
----------------
Array
(
    [test] => Array
        (
            [\'aaa\'] => Array
                (
                    [\'bbb\'] => \'
                )

        )
)

Actual result:
--------------
Array
(
    [test] => Array
        (
            [\'aaa\'] => Array
                (
                    ['bbb'] => \'
                )

        )
)


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


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

Reply via email to