php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68316 [RU] array_keys 2 parameter not NULL
Submitted: 2014-10-28 08:57 UTC Modified: 2014-12-28 07:57 UTC
From: alexpts at yandex dot ru Assigned: irker (profile)
Status: Closed Package: Translation problem
PHP Version: 5.5.18 OS: mac os 10.10
Private report: No CVE-ID: None
 [2014-10-28 08:57 UTC] alexpts at yandex dot ru
Description:
------------
1. Different default value for $search_value in doc
http://ru2.php.net/manual/ru/function.array-keys.php
http://ru2.php.net/manual/en/function.array-keys.php

$search_value not work 'null'

Test script:
---------------
$result1 = array_keys(['id' => 1]); // ['id']
$result2 = array_keys(['id' => 1], null); // []

$expected = ['id'];
echo $expected === $result1 ? 1 : 0; // 1 true
echo $expected === $result2 ? 1 : 0; // 0 false


Expected result:
----------------
['id']

Actual result:
--------------
[]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-28 17:38 UTC] requinix@php.net
-Package: *General Issues +Package: Translation problem
 [2014-12-27 20:30 UTC] sobak@php.net
-Summary: array_keys 2 parameter not NULL +Summary: [RU] array_keys 2 parameter not NULL
 [2014-12-28 07:55 UTC] irker@php.net
Automatic comment from SVN on behalf of irker
Revision: http://svn.php.net/viewvc/?view=revision&revision=335407
Log: Update translation and fix bug #68316
 [2014-12-28 07:57 UTC] irker@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: irker
 [2014-12-28 07:57 UTC] irker@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-12-30 12:47 UTC] nikic@php.net
Automatic comment on behalf of irker
Revision: http://git.php.net/?p=doc/ru.git;a=commit;h=1f4aaf4ac565b08d349ef8d24eeda62ffe5341a4
Log: Update translation and fix bug #68316
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC