|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-01 19:02 UTC] felipe@php.net
-Type: Bug
+Type: Feature/Change Request
[2011-07-01 19:02 UTC] felipe@php.net
[2021-09-09 20:08 UTC] rok dot kralj at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 10:00:01 2025 UTC |
Description: ------------ hi, this is probably an old behavior to make php backward compatible when register_global was enabled parse_str("hey all=1",$r); ---> array('hey_all' => '1'); parse_str is now widely used in xmlhttprequest communication and may cause a lot of issues and waste of time when debugging because we are not able to know how exactly what type of character sanitizing is made to root keys yep, only root keys are sanitized because parse_str("aaa[hey all]=1",$r); ---> array('aaa' => array('hey all', '1')); works like expected so my request is not to change the default behavior of this function (and how $_GET $_POST etc are populated) but add another parameter to this function for who wants root keys parsed without sanitizing void parse_str ( string $str [, array &$arr ] [, bool $bwcompatible = true]) thank you