php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53928 make class method version of mysqli_report
Submitted: 2011-02-04 18:56 UTC Modified: 2017-04-24 08:16 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:0 of 1 (0.0%)
From: jinmoku at hotmail dot com Assigned: fjanisze (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.3.5 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jinmoku at hotmail dot com
New email:
PHP Version: OS:

 

 [2011-02-04 18:56 UTC] 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;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [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
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


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon May 25 23:00:01 2026 UTC