|  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: 2021-02-03 17:16 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: PhoneixSegovia at gmail dot com Assigned: julionc (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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
 [2021-02-03 17:16 UTC]
-Assigned To: +Assigned To: julionc
 [2021-02-03 17:18 UTC]
Automatic comment on behalf of julionc
Log: Fix #73579[ES] Wrong example #2 initialization
 [2021-02-03 17:18 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 18:01:30 2024 UTC