note 128071 added to mysqli.construct
| From: | arnold.nijboer.it via php-notes | Date: | Sat, 31 Dec 2022 12:17:16 +0000 |
| Subject: | note 128071 added to mysqli.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220026@lists.php.net to get a copy of this message | ||
public mysqli::__construct(
    string $hostname = ini_get("mysqli.default_host"),
    string $username = ini_get("mysqli.default_user"),
    string $password = ini_get("mysqli.default_pw"),
    string $database = "",
    int $port = ini_get("mysqli.default_port"),
    string $socket = ini_get("mysqli.default_socket")
)
the mysqli construct looks at the Master PHP.ini values.
if you're using a local ini overwrite of some sort add the ini_get to you're php script:
$mysqli = new
mysqli(ini_get("mysqli.default_host"),ini_get("mysqli.default_user"),ini_get("mysqli.default_pw"))
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.158.213 (proxied: 217.121.112.33)
----
Manual Page -- https://php.net/manual/en/mysqli.construct.php
Edit -- https://main.php.net/note/edit/128071
Del: integrated -- https://main.php.net/note/delete/128071/integrated
Del: useless -- https://main.php.net/note/delete/128071/useless
Del: bad code -- https://main.php.net/note/delete/128071/bad+code
Del: spam -- https://main.php.net/note/delete/128071/spam
Del: non-english -- https://main.php.net/note/delete/128071/non-english
Del: in docs -- https://main.php.net/note/delete/128071/in+docs
Del: other reasons-- https://main.php.net/note/delete/128071
Reject -- https://main.php.net/note/reject/128071
Search -- https://main.php.net/manage/user-notes.php