ID: 28319 Updated by: [EMAIL PROTECTED] Reported By: nick at careercast dot com -Status: Open +Status: Bogus Bug Type: CGI related Operating System: Linux PHP Version: 4.3.4 New Comment:
http://www.php.net/manual/en/configuration.directives.php#ini.arg-separator.input Previous Comments: ------------------------------------------------------------------------ [2004-05-07 19:51:09] nick at careercast dot com Description: ------------ W3C spec indicates that valid separators for name value pairs are "&" and ";". http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2 "We recommend that HTTP server implementors, and in particular, CGI implementors support the use of ";" in place of "&" to save authors the trouble of escaping "&" characters in this manner." This becomes an issue when you are dealing with xml/xsl/xhtml, because you can no longer use: http://host/script.php?var1=bob&var2=jim instead, you have to use: http://host/script.php?var1=bob&var2=jim PHP should follow the W3C recommendation and support ";" as a delimiter for name/value pairs in URLs Reproduce code: --------------- <xmp> <?php print_r ($_GET); ?> </xmp> And then call this script with this query string: ?var1=bob;var2=jim Expected result: ---------------- Array ( [var1] => bob [var2] => jim ) Actual result: -------------- Array ( [var1] => bob;var2=jim ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28319&edit=1
