Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.1.2

Request #15367 Support RFC 3986 with respect to urlencoding
Submitted: 2008-12-21 02:50 UTC
From: gauthierm Assigned: schmidt
Status: Closed Package: Net_URL2 (version 0.2.0)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2008-12-21 02:50 UTC] gauthierm (Michael Gauthier)
Description: ------------ PHP 5.3's rawurlencode() will use RFC 3986, but previous versions use RFC 1738.

Comments

 [2008-12-21 02:58 UTC] gauthierm (Michael Gauthier)
 [2009-01-13 22:06 UTC] schmidt (Christian Schmidt)
I expect to add this function and use that rather than rawurlencode(). Was it something like that you expected? public static function urlencode($string) { $encoded = rawurlencode($string); // This is only necessary in PHP < 5.3. $encoded = str_replace('%7E', '~', $encoded); return $encoded; }
 [2009-01-14 01:24 UTC] gauthierm (Michael Gauthier)
Yep, that would do perfectly.
 [2009-01-14 19:28 UTC] schmidt (Christian Schmidt)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.