|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-28 21:01 UTC] requinix@php.net
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
-Package: Compile Failure
+Package: *General Issues
[2020-09-30 12:19 UTC] cmb@php.net
-Status: Verified
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2020-09-30 12:19 UTC] cmb@php.net
[2020-09-30 15:37 UTC] antonfedonyuk at gmail dot com
-Status: Feedback
+Status: Assigned
[2020-09-30 15:37 UTC] antonfedonyuk at gmail dot com
[2020-09-30 15:47 UTC] cmb@php.net
-Status: Assigned
+Status: Feedback
[2020-09-30 15:47 UTC] cmb@php.net
[2020-10-11 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 13:00:01 2025 UTC |
Description: ------------ Can't use valid callback(string or array) as default value of callable parameters. It's generate fatal error: Default value for parameters with callable type can only be NULL. The guide doesn't contain any notes on this issue. Test script: --------------- <?php function test(callable $callback = 'strtoupper') { return $callback(); } ?>