Doc #73675 [Opn]: mysqli_warning class is undocumented

From: Date: Wed, 07 Dec 2016 15:00:16 +0000
Subject: Doc #73675 [Opn]: mysqli_warning class is undocumented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14187@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: requinix@php.net Reported by: fernando at null-life dot com -Summary: mysqli_warning constructor +Summary: mysqli_warning class is undocumented Status: Open Type: Documentation Problem -Package: Documentation problem +Package: MySQLi related Operating System: Windows PHP Version: 7.1.0 Block user comment: N Private report: N New Comment: __construct() is protected. https://github.com/php/php-src/blob/master/ext/mysqli/mysqli_warning.c Previous Comments: ------------------------------------------------------------------------ [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 (#14187) next »