Doc #73579 [NEW]: Wrong example #2 initialization

From: Date: Tue, 22 Nov 2016 10:29:40 +0000
Subject: Doc #73579 [NEW]: Wrong example #2 initialization
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14131@lists.php.net to get a copy of this message
From: PhoneixSegovia at gmail dot com Operating system: PHP version: Irrelevant Package: Translation problem Bug Type: Documentation Problem Bug description:Wrong example #2 initialization 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. -- Edit bug report at https://bugs.php.net/bug.php?id=73579&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73579&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73579&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73579&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=73579&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=73579&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=73579&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=73579&r=needscript Try newer version: https://bugs.php.net/fix.php?id=73579&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=73579&r=support Expected behavior: https://bugs.php.net/fix.php?id=73579&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=73579&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=73579&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=73579&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73579&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=73579&r=dst IIS Stability: https://bugs.php.net/fix.php?id=73579&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=73579&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=73579&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=73579&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=73579&r=mysqlcfg

« previous php.doc.bugs (#14131) next »