Bug #80109 [Opn]: Cannot skip arguments when extended debug is enabled

From: Date: Wed, 16 Sep 2020 04:23:17 +0000
Subject: Bug #80109 [Opn]: Cannot skip arguments when extended debug is enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229021@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80109&edit=1 ID: 80109 User updated by: dusk at woofle dot net Reported by: dusk at woofle dot net Summary: Cannot skip arguments when extended debug is enabled Status: Open Type: Bug Package: Scripting Engine problem Operating System: any PHP Version: 8.0.0beta3 Block user comment: N Private report: N New Comment: FWIW: This bug is caught when running the Zend/tests/named_params/ test suite with "-e". Previous Comments: ------------------------------------------------------------------------ [2020-09-16 02:24:07] dusk at woofle dot net 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80109&edit=1

« previous php.bugs (#229021) next »