#18993 [Asn->Ana]: arg_separator

From: Date: Mon, 26 Aug 2002 16:09:02 +0000
Subject: #18993 [Asn->Ana]: arg_separator
References: 1  Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-17871@lists.php.net to get a copy of this message
ID: 18993 Updated by: spic@php.net Reported By: ggodlewski@wi.ps.pl -Status: Assigned +Status: Analyzed Bug Type: Documentation problem Operating System: Linux PHP Version: 4.2.2 Assigned To: spic New Comment: After re-investigating the doc, I could not reproduce the error using a test-script that encoded and decoded a string "?test=one&test=two" with $cstr=htmlentities(urlencode($str)); with and without changing arg_separator. Previous Comments: ------------------------------------------------------------------------ [2002-08-26 09:50:57] spic@php.net I will fix it as soon as possible. ------------------------------------------------------------------------ [2002-08-26 09:07:30] ggodlewski@wi.ps.pl I've found it at http://www.zend.com/manual/function.urlencode.php Description at: http://www.php.net/manual/en/function.urlencode.php is wrong as well: "You don't need to change PHP's arg_separator for this" arg_separator _has_ to be set to achive this behaviour. When I upgraded to 4.2.2 my scripts stop working. Instead of "aa" I got strings like "amp;aa". After setting the arg_separator which doesn't need to be changed (according to description) everything is ok. ------------------------------------------------------------------------ [2002-08-26 08:25:26] mk@php.net Perhaps changing this sentence to "A more portable way around this is to use & instead of & as the separator (which is the default setting in php.ini)" will solve the problem. ------------------------------------------------------------------------ [2002-08-26 08:12:50] spic@php.net Where in the Documentation does this error occur??? I found the expression at the urlencode-Doc. Is this correct??? Could you describe the bug a bit more detailed??? ------------------------------------------------------------------------ [2002-08-20 16:01:35] ggodlewski@wi.ps.pl The documentation says: A more portable way around this is to use & instead of & as the separator. You don't need to change PHP's arg_separator for this Whereas I have to set arg_separator to ;& in my php.ini ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18993 -- Edit this bug report at http://bugs.php.net/?id=18993&edit=1

« previous php.bugs (#17871) next »