|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-24 08:16 UTC] fjanisze@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: fjanisze
[2017-04-24 08:16 UTC] fjanisze@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon May 25 22:00:01 2026 UTC |
Description: ------------ there is no class method of mysqli_report, actually the only way with OOP it's with mysql_driver class : $driver = new mysqli_driver(); $driver->report_mode = MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_STRICT; maybe make a static version is a good way : mysqli_driver::report(MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_STRICT); or : $mysqli = new mysqli('...'); $mysqli->report(MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_STRICT); or get mysqli driver instance : $mysqli = new mysqli('...'); $mysqli->driver->report_mode = MYSQLI_REPORT_ALL & ~MYSQLI_REPORT_STRICT;