php.net |  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
Votes:2
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-11-22 10:29 UTC] PhoneixSegovia at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-encode
---

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
  <?php
  $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:

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

As in the English version.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-22 12:22 UTC] cmb@php.net
-Summary: Wrong example #2 initialization +Summary: [ES] Wrong example #2 initialization
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 01:01:26 2019 UTC