Doc #78753 [Asn->Csd]: [RU] Wrong description of options parameter in setcookie doc page
| From: | cmb@php.net | Date: | Sat, 26 Oct 2019 14:21:01 +0000 |
| Subject: | Doc #78753 [Asn->Csd]: [RU] Wrong description of options parameter in setcookie doc page | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17036@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78753&edit=1
ID: 78753
Updated by: cmb@php.net
Reported by: sageptr at gmail dot com
Summary: [RU] Wrong description of options parameter in
setcookie doc page
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Translation problem
PHP Version: 7.3.11
Assigned To: sergey
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2019-10-26 12:52:53] sergey@php.net
Automatic comment from SVN on behalf of sergey
Revision: http://svn.php.net/viewvc/?view=revision&revision=348222
Log: fix(ru): Bug #78753
------------------------------------------------------------------------
[2019-10-26 02:45:40] sageptr at gmail dot com
Description:
------------
On this manual page https://www.php.net/manual/ru/function.setcookie.php
:
```
options
ÐÑÑоÑиаÑивнÑй маÑÑив (array),
коÑоÑÑй Ð¼Ð¾Ð¶ÐµÑ Ð¸Ð¼ÐµÑÑ Ð»Ñбое из
клÑÑей lifetime, path, domain, secure, httponly и samesite.
ÐнаÑÐµÐ½Ð¸Ñ Ð¸Ð¼ÐµÑÑ ÑÐ¾Ñ Ð¶Ðµ ÑмÑÑл,
как опиÑано в паÑамеÑÑаÑ
Ñ
ÑооÑвеÑÑвÑÑÑим именем.
ÐнаÑение ÑлеменÑа samesite должно
бÑÑÑ Ð»Ð¸Ð±Ð¾ Lax, либо Strict. ÐÑли
какаÑ-либо из допÑÑÑимÑÑ
опÑий не Ñказана, ее
знаÑÐµÐ½Ð¸Ñ Ð¿Ð¾ ÑмолÑаниÑ
ÑовпадаÑÑ Ñ Ð·Ð½Ð°ÑениÑми по
ÑмолÑÐ°Ð½Ð¸Ñ Ð´Ð»Ñ ÑвнÑÑ
паÑамеÑÑов. ÐÑли ÑÐ»ÐµÐ¼ÐµÐ½Ñ samesite
не Ñказан, cookie-аÑÑибÑÑ SameSite не
ÑÑÑановлен.
```
But the key is called "expires", not "lifetime". Passing "lifetime"
key doesn't work and it's simply ignored. The English version of manual is correct and
states the key as "expires", so it's a problem with the Russian translation.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78753&edit=1