Doc #76122 [Opn->Csd]: [ZH] some example code is wrong of "String" in Chinese Doc
| From: | carusogabriel@php.net | 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&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