Bug #75389 [NEW]: function 'isset' not found when using array_filter
| From: | g dot sokol99 at g-sokol dot info | Date: | Mon, 16 Oct 2017 15:52:54 +0000 |
| Subject: | Bug #75389 [NEW]: function 'isset' not found when using array_filter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-211721@lists.php.net to get a copy of this message | ||
From: g dot sokol99 at g-sokol dot info
Operating system: Linux
PHP version: 7.1.10
Package: *General Issues
Bug Type: Bug
Bug description:function 'isset' not found when using array_filter
Description:
------------
array_filter($some_array, 'isset') cause PHP WARNING.
Test script:
---------------
<?php
$foo = array('a' => 1, 'b' => null);
var_export(array_filter($foo, 'isset');
Expected result:
----------------
array (
'a' => 1,
)
Actual result:
--------------
PHP Warning: array_filter() expects parameter 2 to be a valid callback,
function 'isset' not found or invalid function name in php shell code on
line 1
PHP Stack trace:
PHP 1. {main}() php shell code:0
PHP 2. array_filter() php shell code:1
NULL
--
Edit bug report at https://bugs.php.net/bug.php?id=75389&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75389&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75389&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75389&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75389&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75389&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75389&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75389&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75389&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75389&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75389&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75389&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75389&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75389&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75389&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75389&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75389&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75389&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75389&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75389&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75389&r=mysqlcfg