php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71174 -
Submitted: 2015-12-20 13:10 UTC Modified: 2015-12-22 15:30 UTC
From: inpost at list dot ru Assigned: tpunt (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.0.1 OS: win7
Private report: No CVE-ID: None
 [2015-12-20 13:10 UTC] inpost at list dot ru
Description:
------------
---
From manual page: http://www.php.net/function.key-exists
---

Deprecated, but no information about it on this page! Please, fix that!

Test script:
---------------
-

Expected result:
----------------
-

Actual result:
--------------
-

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-20 13:11 UTC] inpost at list dot ru
Quote from https://secure.php.net/manual/en/function.array-key-exists.php :
Note:
For backward compatibility, the following deprecated alias may be used: key_exists()
 [2015-12-20 14:28 UTC] tpunt@php.net
-Assigned To: +Assigned To: tpunt
 [2015-12-20 14:31 UTC] tpunt@php.net
Automatic comment from SVN on behalf of tpunt
Revision: http://svn.php.net/viewvc/?view=revision&revision=338334
Log: Resolve doc bug #71174
 [2015-12-20 14:33 UTC] tpunt@php.net
The key_exists() function has never been deprecated (according to its source code for PHP 5.2 and above, at least). There was a discussion some years ago about documenting it[1], where it was brought up that some aliases (including this one) were old, but since it was never formally deprecated, I've removed the deprecation warning from the array_key_exists() page. I will also delete the comment on the key_exists() page to remove any confusion about the function being deprecated.

Commit: https://svn.php.net/viewvc?view=revision&revision=338334

I'll leave this open for a few days for other docs members to see in case they have anything further to say on this.

[1]: http://grokbase.com/t/php/php-doc-bugs/1099axq7we/php-bug-doc-52806-new-key-exists-alias-of-array-key-exists-undocumented
 [2015-12-22 15:30 UTC] tpunt@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC