Edit report at http://bugs.php.net/bug.php?id=28319&edit=1

 ID:                 28319
 Comment by:         kaldari at gmail dot com
 Reported by:        nick at careercast dot com
 Summary:            Query string parsing not respecting semicolon as a
                     delimiter
 Status:             Bogus
 Type:               Bug
 Package:            CGI related
 Operating System:   Linux
 PHP Version:        4.3.4
 Block user comment: N

 New Comment:

Why is this bug marked as "Bogus"?


Previous Comments:
------------------------------------------------------------------------
[2004-05-07 19:54:55] [email protected]

http://www.php.net/manual/en/configuration.directives.php#ini.arg-separator.input

------------------------------------------------------------------------
[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/bug.php?id=28319&edit=1

Reply via email to