--TEST-- Test parse_str() function : basic functionality --INI-- max_input_vars=100 filter.default=unsafe_raw --FILE-- ===DONE=== --EXPECTF-- *** Testing parse_str() : basic functionality *** Test string with array values Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d NULL string(3) "abc" array(3) { [0]=> string(3) "123" [1]=> string(5) "false" [2]=> string(4) "last" } array(1) { [0]=> string(3) "str" } array(1) { [0]=> string(3) "3.5" } Test string with array values and results array NULL array(4) { ["first"]=> string(3) "abc" ["a"]=> array(3) { [0]=> string(3) "123" [1]=> string(5) "false" [2]=> string(4) "last" } ["b"]=> array(1) { [0]=> string(3) "str" } ["c"]=> array(1) { [0]=> string(3) "3.5" } } Test string containing numerical array keys NULL array(1) { ["arr"]=> array(2) { [1]=> string(3) "sid" [4]=> string(4) "bill" } } Test string containing associative keys NULL array(1) { ["arr"]=> array(2) { ["first"]=> string(3) "sid" ["forth"]=> string(4) "bill" } } Test string with array values with same name as existing variable Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d NULL array(3) { [0]=> string(3) "123" [1]=> string(5) "false" [2]=> string(4) "last" } Test string with non-array value with same name as existing array variable Deprecated: parse_str(): Calling parse_str() without the result argument is deprecated in %s on line %d string(3) "999" Test string with encoded data array(2) { ["a"]=> string(17) "<== foo bar ==>" ["b"]=> string(17) "###Hello World###" } Test string with single quotes characters NULL array(2) { ["firstname"]=> string(4) "Bill" ["surname"]=> string(8) "O'Reilly" } Test string with backslash characters NULL array(1) { ["sum"]=> string(6) "10\2=5" } Test string with double quotes data NULL array(1) { ["str"]=> string(30) "A string with "quoted" strings" } Test string with nulls NULL array(1) { ["str"]=> string(34) "A string with containing nulls" } Test string with 2-dim array with numeric keys NULL array(1) { ["arr"]=> array(1) { [3]=> array(2) { [4]=> string(3) "sid" [6]=> string(4) "fred" } } } Test string with 2-dim array with null keys NULL array(1) { ["arr"]=> array(2) { [0]=> array(1) { [0]=> string(3) "sid" } [1]=> array(1) { [0]=> string(4) "fred" } } } Test string with 2-dim array with non-numeric keys NULL array(1) { ["arr"]=> array(2) { ["one"]=> array(1) { ["four"]=> string(3) "sid" } ["three"]=> array(1) { ["six"]=> string(4) "fred" } } } Test string with 3-dim array with numeric keys NULL array(1) { ["arr"]=> array(1) { [1]=> array(1) { [2]=> array(2) { [3]=> string(3) "sid" [6]=> string(4) "fred" } } } } ===DONE===