note 127600 added to mysqli.options
| From: | puneetsharam9 at hotmail dot com | Date: | Thu, 08 Sep 2022 05:35:58 +0000 |
| Subject: | note 127600 added to mysqli.options | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219543@lists.php.net to get a copy of this message | ||
With Objective Approach
init of mysqli is depreciated from 8.1 it seem so
You could have to use an empty __construct()
So You have proper int and float
class DB extends \mysqli {
private function __construct(
private $_user = DBUSER,
private $_pass = DBPWD,
private $_dbName = DBNAME,
private $_dbHost = DBHOST,
) {
parent::__construct();
parent::options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, 1);
parent::real_connect($this->_dbHost, $this->_user, $this->_pass, $this->_dbName);
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.173 (proxied: 117.208.66.89)
----
Manual Page -- https://php.net/manual/en/mysqli.options.php
Edit -- https://main.php.net/note/edit/127600
Del: integrated -- https://main.php.net/note/delete/127600/integrated
Del: useless -- https://main.php.net/note/delete/127600/useless
Del: bad code -- https://main.php.net/note/delete/127600/bad+code
Del: spam -- https://main.php.net/note/delete/127600/spam
Del: non-english -- https://main.php.net/note/delete/127600/non-english
Del: in docs -- https://main.php.net/note/delete/127600/in+docs
Del: other reasons-- https://main.php.net/note/delete/127600
Reject -- https://main.php.net/note/reject/127600
Search -- https://main.php.net/manage/user-notes.php