php.net |  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: Closed Package: MySQLi related
PHP Version: 7.1.0 OS: Windows
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fernando at null-life dot com
New email:
PHP Version: OS:

 

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

Test script:
---------------
<?php

$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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

http://php.net/manual/en/mysqli-warning.construct.php
 [2016-12-07 15:00 UTC] requinix@php.net
-Summary: mysqli_warning constructor +Summary: mysqli_warning class is undocumented -Package: Documentation problem +Package: MySQLi related
 [2016-12-07 15:49 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-12-07 15:56 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=341330
Log: Partially fix #73675: mysqli_warning class is undocumented

We fix only the wrong visibility spec, for now.
 [2016-12-07 15:57 UTC] cmb@php.net
-Assigned To: cmb +Assigned To:
 [2020-02-07 06:06 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=dae7041cce6ebf8ebfcec81c8e30284863dd3b94
Log: Partially fix #73675: mysqli_warning class is undocumented
 [2020-02-07 06:06 UTC] phpdocbot@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 23:01:29 2024 UTC