php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68516 [pt_BR] Wrong Page encoding
Submitted: 2014-11-27 11:48 UTC Modified: 2015-08-04 13:14 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ti dot rcampanari at gmail dot com Assigned: ae (profile)
Status: Closed Package: Translation problem
PHP Version: 5.6.3 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ti dot rcampanari at gmail dot com
New email:
PHP Version: OS:

 

 [2014-11-27 11:48 UTC] ti dot rcampanari at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.urldecode
---


1. <?php
2. $a = split ('&amp;', $querystring);
3. $i = 0;
4. while ($i &lt; count ($a)) {
5.   $b = split ('=', $a [$i]);
6.   echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])),
7.        ' is ', htmlspecialchars (urldecode ($b [1])), "&lt;BR>";
8.   $i++;
9. }
10. ?>

On line [4], '&lt' should be '<'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-28 20:04 UTC] sobak@php.net
-Package: Documentation problem +Package: Translation problem
 [2014-11-28 20:04 UTC] sobak@php.net
Thanks for your report. However, example in English version is different than you quoted. Did you mean any translation (this code seems to be very old - it uses split())? If so, please specify language version. Currently, I've categorized this bug as "translation problem".
 [2014-12-01 14:21 UTC] ti dot rcampanari at gmail dot com
You're right @sobak, it is on pt-BR translation.
 [2014-12-27 20:28 UTC] sobak@php.net
-Summary: Wrong Page encoding +Summary: [pt_BR] Wrong Page encoding
 [2015-08-04 13:14 UTC] ae@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ae
 [2015-08-04 13:14 UTC] ae@php.net
Translation updated.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 09:00:02 2026 UTC