Doc #81232 [NEW]: Wrong params names for mysqli::__construct()
From: yo at drmad dot org
Operating system: -
PHP version: 8.0.8
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Wrong params names for mysqli::__construct()
Description:
------------
Now that PHP supports named parameters, those names in the documentation
must match the used in the PHP source.
E.g. in the documentation for mysqli::__construct(), '$host' and
'$dbname' are wrong.
Expected result:
----------------
From file ext/mysqli/mysqli.stub.php in the source:
public function __construct(
?string $hostname = null,
?string $username = null,
?string $password = null,
?string $database = null,
?int $port = null,
?string $socket = null
)
Actual result:
--------------
From https://www.php.net/manual/en/mysqli.construct.php
:
public mysqli::__construct(
string $host = ini_get("mysqli.default_host"),
string $username = ini_get("mysqli.default_user"),
string $passwd = ini_get("mysqli.default_pw"),
string $dbname = "",
int $port = ini_get("mysqli.default_port"),
string $socket = ini_get("mysqli.default_socket")
)
--
Edit bug report at https://bugs.php.net/bug.php?id=81232&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81232&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81232&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81232&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81232&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81232&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81232&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81232&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81232&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81232&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81232&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81232&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81232&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81232&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81232&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81232&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81232&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81232&r=mysqlcfg
Thread (5 messages)
- yo at drmad dot org