Bug #70500 [Opn]: array_keys() returns NULL
| From: | miloslav dot hula at gmail dot com | Date: | Tue, 15 Sep 2015 10:07:06 +0000 |
| Subject: | Bug #70500 [Opn]: array_keys() returns NULL | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12750@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70500&edit=1
ID: 70500
User updated by: miloslav dot hula at gmail dot com
Reported by: miloslav dot hula at gmail dot com
Summary: array_keys() returns NULL
Status: Open
Type: Bug
Package: Documentation problem
PHP Version: 7.0.0RC2
Block user comment: N
Private report: N
New Comment:
Generally returns NULL on anything else than array.
Previous Comments:
------------------------------------------------------------------------
[2015-09-15 10:03:38] miloslav dot hula at gmail dot com
Description:
------------
The array_keys() returns NULL when called with NULL instead of array.
Test script:
---------------
<?php
var_dump(array_keys(NULL));
Expected result:
----------------
array(0) {
}
Actual result:
--------------
NULL
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70500&edit=1