Req #53928 [Opn->Csd]: make class method version of mysqli_report

From: Date: Mon, 24 Apr 2017 08:16:41 +0000
Subject: Req #53928 [Opn->Csd]: make class method version of mysqli_report
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208731@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53928&edit=1 ID: 53928 Updated by: fjanisze@php.net Reported by: jinmoku at hotmail dot com Summary: make class method version of mysqli_report -Status: Open +Status: Closed Type: Feature/Change Request Package: MySQLi related PHP Version: 5.3.5 -Assigned To: +Assigned To: fjanisze Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2011-02-04 18:56:04] jinmoku at hotmail dot com 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; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53928&edit=1

« previous php.bugs (#208731) next »