Req #68729 [Asn->Fbk]: http_build_query() should use RFC3986 escape as the default

From: Date: Tue, 31 Aug 2021 10:46:07 +0000
Subject: Req #68729 [Asn->Fbk]: http_build_query() should use RFC3986 escape as the default
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236195@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68729&edit=1 ID: 68729 Updated by: cmb@php.net Reported by: yohgaki@php.net Summary: http_build_query() should use RFC3986 escape as the default -Status: Assigned +Status: Feedback Type: Feature/Change Request Package: *URL Functions Operating System: ANY PHP Version: Irrelevant -Assigned To: yohgaki +Assigned To: cmb Block user comment: N Private report: N New Comment: > Since urldecode() decodes %20 to ' '. There is no BC issue. Non sequitur. While I agree that defaulting to PHP_QUERY_RFC1738 is a bit unfortunate nowadays, changing this default would cause a subtle BC break; I doubt that it's worth it. Are you still planning to pursue this? Previous Comments: ------------------------------------------------------------------------ [2015-01-15 11:28:41] ppasindud at gmail dot com Then wouldn't it be same as rawurlencode, I am assuming that there is a reason to have two of those with slight differences. ------------------------------------------------------------------------ [2015-01-03 01:52:10] yohgaki@php.net Description: ------------ It uses RFC 1738 (escape ' ' as +). It should use RFC 3986. i.e. escape ' ' as %20. Since urldecode() decodes %20 to ' '. There is no BC issue. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68729&edit=1

« previous php.bugs (#236195) next »