|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73675 mysqli_warning class is undocumented
Submitted: 2016-12-07 14:53 UTC Modified: 2016-12-07 15:57 UTC
From: fernando at null-life dot com Assigned:
Status: Verified Package: MySQLi related
PHP Version: 7.1.0 OS: Windows
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.
Block user comment
Status: Assign to:
Bug Type:
From: fernando at null-life dot com
New email:
PHP Version: OS:


 [2016-12-07 14:53 UTC] fernando at null-life dot com
According to the doc, the class is public but I can't instantiate it, probably a documentation problem

Test script:

$m = new mysqli_warning();

Expected result:
No error

Actual result:
Fatal error: Uncaught Error: Call to protected mysqli_warning::__construct() fro
m invalid context in D:\fms\matatetete-master\mysql.php:3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-07 14:54 UTC] fernando at null-life dot com
-Type: Bug +Type: Documentation Problem
 [2016-12-07 14:54 UTC] fernando at null-life dot com
Changing bug type
 [2016-12-07 14:55 UTC] fernando at null-life dot com
Forgot to include the link
 [2016-12-07 15:00 UTC]
-Summary: mysqli_warning constructor +Summary: mysqli_warning class is undocumented -Package: Documentation problem +Package: MySQLi related
 [2016-12-07 15:49 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-12-07 15:56 UTC]
Automatic comment from SVN on behalf of cmb
Log: Partially fix #73675: mysqli_warning class is undocumented

We fix only the wrong visibility spec, for now.
 [2016-12-07 15:57 UTC]
-Assigned To: cmb +Assigned To:
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 13:01:24 2020 UTC