|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76122 [ZH] some example code is wrong of "String" in Chinese Doc
Submitted: 2018-03-21 00:07 UTC Modified: 2018-09-09 00:30 UTC
From: hongstarw at 126 dot com Assigned: carusogabriel (profile)
Status: Closed Package: Translation problem
PHP Version: 7.2.4RC1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hongstarw at 126 dot com
New email:
PHP Version: OS:


 [2018-03-21 00:07 UTC] hongstarw at 126 dot com
some example code is wrong of  "String" in  Chinese Doc 



class foo {
    var $bar = 'I am bar.';

$foo = new foo();
$bar = 'bar';
$baz = array('foo', 'bar', 'baz', 'quux');
echo "{$foo->$bar}\n";
echo "{$foo->$baz[1]}\n";

I am bar.
I am bar.

The line before "?>" should be "echo "{$foo->{$baz[1]}}\n";"
{} is missing in Chinese document.There will be an error.
Please check it.

Expected result:
"echo "{$foo->$baz[1]}\n" " should be "echo "{$foo->{$baz[1]}}\n";"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-21 09:32 UTC]
-Summary: some example code is wrong of "String" in Chinese Doc +Summary: [ZH] some example code is wrong of "String" in Chinese Doc -Package: Documentation problem +Package: Translation problem
 [2018-09-09 00:26 UTC]
Automatic comment from SVN on behalf of carusogabriel
Log: Fix Bug #76122

There were missing {} is one of the examples, resulting in an error in the ZH translation.
 [2018-09-09 00:30 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: carusogabriel
 [2018-09-09 00:30 UTC]
Thank you for your bug report.

We've fixed it and you should be able to see the reflected changes in a couple of days in
 [2020-12-30 10:47 UTC]
Automatic comment on behalf of carusogabriel
Log: Fix Bug #76122
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Mar 20 19:03:41 2023 UTC