|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78236 convert error on receiving variables when duplicate [
Submitted: 2019-07-01 07:45 UTC Modified: -
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: hongweichen8888 at sina dot com Assigned:
Status: Open Package: Documentation problem
PHP Version: 7.2.19 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: hongweichen8888 at sina dot com
New email:
PHP Version: OS:


 [2019-07-01 07:45 UTC] hongweichen8888 at sina dot com
when php receivie the data from external sources, a variables named 'id[[name' will be saved into $_REQUEST['id_[name'];


Will '[' only be replaced once?

Test script:
<form method="post">
    <input type="text" name="id[name" value="1">
    <input type="text" name="id[[name" value="a">
    <input type="submit">

Expected result:
array ( 
  'id_name' => '1', 
  'id__name' => 'a',

Actual result:
array ( 
  'id_name' => '1', 
  'id_[name' => 'a',


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu May 28 13:01:29 2020 UTC