Doc #80570 [NEW]: Incorrect named argument name for the nested function
From: vasilii dot b dot shpilchin at gmail dot com
Operating system:
PHP version: 8.0.0
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Incorrect named argument name for the nested function
Description:
------------
---
From manual page: https://php.net/functions.arguments
---
Named arguments Example #14 got the error: "Unknown named parameter
$num".
Instead of this:
array_fill(start_index: 0, num: 100, value: 50);
it should be this:
array_fill(start_index: 0, count: 100, value: 50);
Thank you!
Test script:
---------------
// Run this, see error then comment out the first call and run again
var_dump(array_fill(start_index: 0, num: 100, value: 50));
var_dump(array_fill(start_index: 0, count: 100, value: 50));
--
Edit bug report at https://bugs.php.net/bug.php?id=80570&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80570&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80570&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80570&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80570&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80570&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80570&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80570&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80570&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80570&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80570&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80570&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80570&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80570&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80570&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80570&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80570&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80570&r=mysqlcfg
Thread (3 messages)
- vasilii dot b dot shpilchin at gmail dot com