Annotation of embedaddon/php/ext/standard/tests/strings/parse_str_basic2.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test parse_str() function : non-default arg_separator.input specified
                      3: --INI--
                      4: arg_separator.input = "/" 
                      5: --FILE--
                      6: <?php
                      7: /* Prototype  : void parse_str  ( string $str  [, array &$arr  ] )
                      8:  * Description: Parses the string into variables
                      9:  * Source code: ext/standard/string.c
                     10: */
                     11: 
                     12: echo "*** Testing parse_str() : non-default arg_separator.input specified ***\n";
                     13: 
                     14: $s1 = "first=val1/second=val2/third=val3";
                     15: var_dump(parse_str($s1));
                     16: var_dump($first, $second, $third);
                     17: 
                     18: ?>
                     19: ===DONE===
                     20: --EXPECTF--
                     21: *** Testing parse_str() : non-default arg_separator.input specified ***
                     22: NULL
                     23: string(4) "val1"
                     24: string(4) "val2"
                     25: string(4) "val3"
                     26: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>