Bug #80440 [NEW]: base_convert doesn't take named arguments
| From: | zevio at dougherty dot se | Date: | Sat, 28 Nov 2020 23:16:20 +0000 |
| Subject: | Bug #80440 [NEW]: base_convert doesn't take named arguments | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-230699@lists.php.net to get a copy of this message | ||
From: zevio at dougherty dot se
Operating system: Mac OS 11.0.1
PHP version: 8.0.0
Package: *Math Functions
Bug Type: Bug
Bug description:base_convert doesn't take named arguments
Description:
------------
Named arguments do not work with base_convert.
base_convert(number: 'a37334', frombase: 16, tobase: 2) throws error.
Test script:
---------------
<?php declare(strict_types = 1);
echo base_convert(number: 'a37334', frombase: 16, tobase: 2);
Expected result:
----------------
101000110111001100110100
Actual result:
--------------
PHP Fatal error: Uncaught Error: Unknown named parameter $number inâ¦
--
Edit bug report at https://bugs.php.net/bug.php?id=80440&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80440&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80440&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80440&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80440&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80440&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80440&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80440&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80440&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80440&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80440&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80440&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80440&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80440&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80440&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80440&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80440&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80440&r=mysqlcfg