php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47186 [FR] French Translation Example Code Incorrect
Submitted: 2009-01-21 21:52 UTC Modified: 2009-01-29 22:06 UTC
From: danbrown@php.net Assigned:
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
 [2009-01-21 21:52 UTC] danbrown@php.net
Description:
------------
In the first example on http://php.net/manual/fr/language.oop5.visibility.php, and only in the French translation, there is a typo that echoes $this->private; twice, as opposed to first echoing $this->public;.

Reproduce code:
---------------
Go to http://php.net/manual/fr/language.oop5.visibility.php and read the first example.

Expected result:
----------------
class MyClass
{
    public $public = 'Public';
    protected $protected = 'Protected';
    private $private = 'Private';

    function printHello()
    {
        echo $this->public; // <--- This is how it *should* be.
        echo $this->protected;
        echo $this->private;
    }
}

Actual result:
--------------
class MyClass
{
    public $public = 'Public';
    protected $protected = 'Protected';
    private $private = 'Private';

    function printHello()
    {
        echo $this->private; // <--- This is how it *is*.
        echo $this->protected;
        echo $this->private;
    }
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-29 22:06 UTC] yannick@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.


 [2020-12-30 12:50 UTC] nikic@php.net
Automatic comment on behalf of yannick
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=32246a5d40554fda30c7bfadd30db85a1f81e5d2
Log: fix bug #47186
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 21:01:29 2024 UTC