php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71823 [DE] description of JSON_FORCE_OBJECT is wrong
Submitted: 2016-03-14 15:44 UTC Modified: 2016-03-15 15:57 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:-1 (-100.0%)
From: paul dot voss at chefkoch dot de Assigned: cmb (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2016-03-14 15:44 UTC] paul dot voss at chefkoch dot de
Description:
------------
The English documentation says:
JSON_FORCE_OBJECT -> Outputs an object rather than an array when a non-associative array is used.

... which sounds completely plausible.

The German documentation has a translation error and says the exact opposite:
JSON_FORCE_OBJECT -> Gibt ein Objekt bevorzugt als Array aus, wenn ein nichtassoziatives Array Array verwendet wird. (Outputs an array rather than...).

... which is totally confusing, given I just FORCED to cast something to an object.
Also, the word "Array" is duplicated.


Should I request an account for the "Php Docbook Online Editor" and fix it myself?

---
From manual page: http://www.php.net/json.constants
And more precisely: http://php.net/manual/de/json.constants.php#constant.json-force-object
---


Expected result:
----------------
The first sentence should be:

Gibt ein Objekt anstatt einem Array aus, wenn ein nichtassoziatives Array verwendet wird.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-15 15:52 UTC] cmb@php.net
-Summary: German description of JSON_FORCE_OBJECT is wrong +Summary: [DE] description of JSON_FORCE_OBJECT is wrong -Assigned To: +Assigned To: cmb
 [2016-03-15 15:56 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=338750
Log: fixed #71823 (description of JSON_FORCE_OBJECT is wrong)
 [2016-03-15 15:57 UTC] cmb@php.net
-Status: Assigned +Status: Closed
 [2016-03-15 15:57 UTC] cmb@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

> Should I request an account for the "Php Docbook Online Editor"
> and fix it myself?

You don't have to request an account for using the online editor.
Either you can log in anonymously, or you can use any existing
Github, Facebook etc. account.
 [2020-02-07 09:56 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=96fa4379c093b3a419c235458084e2aae35e0273
Log: fixed #71823 (description of JSON_FORCE_OBJECT is wrong)
 [2020-12-30 11:15 UTC] nikic@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=41069147ae05dc1ba23fb19e63df032f4c3d2a7f
Log: fixed #71823 (description of JSON_FORCE_OBJECT is wrong)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 08:01:35 2024 UTC