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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC