|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73579 [ES] Wrong example #2 initialization
Submitted: 2016-11-22 10:29 UTC Modified: 2016-11-22 12:22 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: PhoneixSegovia at gmail dot com Assigned:
Status: Open Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: PhoneixSegovia at gmail dot com
New email:
PHP Version: OS:


 [2016-11-22 10:29 UTC] PhoneixSegovia at gmail dot com
From manual page:

In the documentation page for json-encode in Spanish you have the following text and code:

  Ejemplo #2 Un ejemplo de json_encode() mostrando algunas de las opciones en acción
  $a = array('<foo>',"'bar'",'"baz"','&blong&');
  echo "Normal: ",  json_encode($a), "\n";

The initialization of $a must be:

  $a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");

So the result can show how 'é' is coded (which it's already done).

Expected result:
The second example code must start with:

  $a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");

As in the English version.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-22 12:22 UTC]
-Summary: Wrong example #2 initialization +Summary: [ES] Wrong example #2 initialization
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 21 19:01:23 2020 UTC