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

From: Date: Wed, 16 Sep 2020 02:24:08 +0000
Subject: Bug #80109 [NEW]: Cannot skip arguments when extended debug is enabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229020@lists.php.net to get a copy of this message
From: dusk at woofle dot net Operating system: any PHP version: 8.0.0beta3 Package: Scripting Engine problem Bug Type: Bug Bug description:Cannot skip arguments when extended debug is enabled 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 bug report at https://bugs.php.net/bug.php?id=80109&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80109&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80109&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80109&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80109&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80109&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80109&r=support Expected behavior: https://bugs.php.net/fix.php?id=80109&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80109&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80109&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80109&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80109&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80109&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80109&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80109&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80109&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80109&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80109&r=mysqlcfg

« previous php.bugs (#229020) next »