Bug #79740 [NEW]: is_callable issue
| From: | qqqqqwwwww731 at gmail dot com | Date: | Fri, 26 Jun 2020 08:10:13 +0000 |
| Subject: | Bug #79740 [NEW]: is_callable issue | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-227678@lists.php.net to get a copy of this message | ||
From: qqqqqwwwww731 at gmail dot com
Operating system: Linux
PHP version: 7.4.7
Package: *General Issues
Bug Type: Bug
Bug description:is_callable issue
Description:
------------
is_callable function behavior changed in php 7.4
Test script:
---------------
<?php
class A
{
public function serialize($v)
{
}
public function func($v)
{
}
}
var_dump(is_callable(['A', 'serialize']));
var_dump(is_callable(['A', 'func']));
Expected result:
----------------
bool(true)
bool(true)
as in php before 7.4
Actual result:
--------------
in php 7.4 we have
bool(false)
bool(true)
--
Edit bug report at https://bugs.php.net/bug.php?id=79740&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79740&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79740&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79740&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79740&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79740&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79740&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79740&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79740&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79740&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79740&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79740&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79740&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79740&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79740&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79740&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79740&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79740&r=mysqlcfg