note 130122 added to mysqli-driver.report-mode
| From: | theking2@king.ma | Date: | Sat, 08 Mar 2025 13:32:29 +0000 |
| Subject: | note 130122 added to mysqli-driver.report-mode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221950@lists.php.net to get a copy of this message | ||
Example #1 will now report a depricated warning:
"The mysqli_driver class is an instance of the monostate pattern, i.e. there is only one driver
which can be accessed though an arbitrary amount of mysqli_driver instances."
To set the error mode of the mysql driver do use
<?php
mysqli_report(MYSQLI_REPORT_ERROR | MYSQLI_REPORT_STRICT);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 83.97.87.43)
----
Manual Page -- https://php.net/manual/en/mysqli-driver.report-mode.php
Edit -- https://main.php.net/note/edit/130122
Del: integrated -- https://main.php.net/note/delete/130122/integrated
Del: useless -- https://main.php.net/note/delete/130122/useless
Del: bad code -- https://main.php.net/note/delete/130122/bad+code
Del: spam -- https://main.php.net/note/delete/130122/spam
Del: non-english -- https://main.php.net/note/delete/130122/non-english
Del: in docs -- https://main.php.net/note/delete/130122/in+docs
Del: other reasons-- https://main.php.net/note/delete/130122
Reject -- https://main.php.net/note/reject/130122
Search -- https://main.php.net/manage/user-notes.php