Bug #68316 [Opn->Csd]: [RU] array_keys 2 parameter not NULL

From: Date: Sun, 28 Dec 2014 07:57:56 +0000
Subject: Bug #68316 [Opn->Csd]: [RU] array_keys 2 parameter not NULL
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11772@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68316&edit=1 ID: 68316 Updated by: irker@php.net Reported by: alexpts at yandex dot ru Summary: [RU] array_keys 2 parameter not NULL -Status: Open +Status: Closed Type: Bug Package: Translation problem Operating System: mac os 10.10 PHP Version: 5.5.18 -Assigned To: +Assigned To: irker 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: ------------------------------------------------------------------------ [2014-12-28 07:55:39] 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-10-28 08:57:48] 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: -------------- [] ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68316&edit=1

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