|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
5 + 8 = ?
Subscribe to this entry?

 [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: Sat Jul 11 11:01:24 2020 UTC