Doc #78236 [NEW]: convert error on receiving variables when duplicate [

From: Date: Mon, 01 Jul 2019 07:45:12 +0000
Subject: Doc #78236 [NEW]: convert error on receiving variables when duplicate [
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16789@lists.php.net to get a copy of this message
From: hongweichen8888 at sina dot com Operating system: Windows PHP version: 7.2.19 Package: Documentation problem Bug Type: Documentation Problem Bug description:convert error on receiving variables when duplicate [ Description: ------------ when php receivie the data from external sources, a variables named 'id[[name' will be saved into $_REQUEST['id_[name']; @see http://php.net/manual/en/language.variables.external.php 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"> </form> Expected result: ---------------- array ( 'id_name' => '1', 'id__name' => 'a', ) Actual result: -------------- array ( 'id_name' => '1', 'id_[name' => 'a', ) -- Edit bug report at https://bugs.php.net/bug.php?id=78236&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78236&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78236&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78236&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78236&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78236&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78236&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78236&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78236&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78236&r=support Expected behavior: https://bugs.php.net/fix.php?id=78236&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78236&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78236&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78236&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78236&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78236&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78236&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78236&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78236&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78236&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78236&r=mysqlcfg

« previous php.doc.bugs (#16789) next »