|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-09-16 04:23 UTC] dusk at woofle dot net
[2020-09-17 08:03 UTC] nikic@php.net
[2020-09-17 08:03 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
Description: ------------ When running PHP with the -e ("Generate extended information for debugger/profiler") option, arguments with default values cannot be skipped using named arguments. Test script: --------------- <?php function f($a = "hello", $b = "nobody") { print "$a $b\n"; } f(b: "world"); Expected result: ---------------- The script should behave identically (printing "hello world") when running with and without "-e". Actual result: -------------- Fatal error: Uncaught ArgumentCountError: f(): Argument #1 ($a) not passed when running with -e.