|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-06-26 08:20 UTC] nikic@php.net
[2020-06-26 08:26 UTC] nikic@php.net
-Status: Open
+Status: Verified
[2020-06-26 08:26 UTC] nikic@php.net
[2020-06-26 08:30 UTC] nikic@php.net
-Summary: is_callable issue
+Summary: serialize() and unserialize() methods can not
be called statically
-Status: Verified
+Status: Assigned
-Assigned To:
+Assigned To: nikic
[2020-06-26 10:54 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2020-06-26 10:54 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
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)