Doc #73675 [Opn->Ver]: mysqli_warning class is undocumented

From: Date: Wed, 07 Dec 2016 15:49:56 +0000
Subject: Doc #73675 [Opn->Ver]: mysqli_warning class is undocumented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14191@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73675&edit=1 ID: 73675 Updated by: cmb@php.net Reported by: fernando at null-life dot com Summary: mysqli_warning class is undocumented -Status: Open +Status: Verified Type: Documentation Problem Package: MySQLi related Operating System: Windows PHP Version: 7.1.0 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-12-07 15:00:15] requinix@php.net __construct() is protected. https://github.com/php/php-src/blob/master/ext/mysqli/mysqli_warning.c ------------------------------------------------------------------------ [2016-12-07 14:55:18] fernando at null-life dot com Forgot to include the link http://php.net/manual/en/mysqli-warning.construct.php ------------------------------------------------------------------------ [2016-12-07 14:54:36] fernando at null-life dot com Changing bug type ------------------------------------------------------------------------ [2016-12-07 14:53:51] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73675&edit=1

« previous php.doc.bugs (#14191) next »