php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77813 [ZH] Memcached::increment translation error
Submitted: 2019-03-28 08:05 UTC Modified: 2020-09-01 05:41 UTC
From: cwk at meitu dot com Assigned: avenger (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
 [2019-03-28 08:05 UTC] cwk at meitu dot com
Description:
------------
---
From manual page: https://php.net/memcached.increment
---
Memcache::increment chinese translation error

error text:
Memcached::increment()将一个数值元素增加参数offset指定的大小。 如果元素的值不是数值类型,将其作为0处理。如果元素不存在Memcached::increment()失败。
true text:
Memcached::increment()将一个数值元素增加参数offset指定的大小。 如果元素的值不是数值类型,将返回错误。如果元素不存在会设置成initial_value的值。

Test script:
---------------
<?php
$m = new Memcached();
$m->addServer('localhost', 11211);

$n = $m->increment('counter', 10);
var_dump($n);


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-03-28 08:42 UTC] cmb@php.net
-Summary: Memcached::increment chinese translation error +Summary: [ZH] Memcached::increment translation error
 [2019-03-28 08:42 UTC] cmb@php.net
-Package: *Languages/Translation +Package: Translation problem
 [2020-09-01 05:41 UTC] avenger@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: avenger
 [2020-09-01 05:41 UTC] avenger@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-09-01 05:41 UTC] avenger@php.net
fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC