|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-10-28 11:13 UTC] nikic@php.net
-Status: Open
+Status: Verified
[2019-10-28 11:13 UTC] nikic@php.net
[2019-10-28 11:22 UTC] nikic@php.net
-Status: Verified
+Status: Analyzed
[2019-10-28 11:22 UTC] nikic@php.net
[2019-10-28 11:31 UTC] nicolas dot grekas+php at gmail dot com
[2019-10-29 14:09 UTC] nikic@php.net
[2019-10-29 14:09 UTC] nikic@php.net
-Status: Analyzed
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
Description: ------------ php > $a = [function () { echo 123; }, '__invoke']; php > $a(); 123 php > $b = Closure::fromCallable($a); php > $b(); PHP Warning: Invalid callback , no array or string given in php shell code on line 1 PHP Stack trace: PHP 1. {main}() php shell code:0 PHP 2. Closure->__invoke() php shell code:1 php > The warning is wrong - Closure::fromCallable() could return $a actually :)