Doc #76122 [Opn->Csd]: [ZH] some example code is wrong of "String" in Chinese Doc

From: Date: Sun, 09 Sep 2018 00:30:18 +0000
Subject: Doc #76122 [Opn->Csd]: [ZH] some example code is wrong of "String" in Chinese Doc
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15977@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76122&edit=1 ID: 76122 Updated by: carusogabriel@php.net Reported by: hongstarw at 126 dot com Summary: [ZH] some example code is wrong of "String" in Chinese Doc -Status: Open +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: 7.2.4RC1 -Assigned To: +Assigned To: carusogabriel Block user comment: N Private report: N New Comment: 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 php.net. Previous Comments: ------------------------------------------------------------------------ [2018-09-09 00:26:40] carusogabriel@php.net Automatic comment from SVN on behalf of carusogabriel Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=345613 Log: Fix Bug #76122 There were missing {} is one of the examples, resulting in an error in the ZH translation. ------------------------------------------------------------------------ [2018-03-21 00:07:59] hongstarw at 126 dot com Description: ------------ some example code is wrong of "String" in Chinese Doc link: http://php.net/manual/zh/language.types.string.php 也可以在字符串中用此语法通过变量来调用类的属性。 <?php 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";" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76122&edit=1

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