Doc #76151 [Opn->Csd]: Mention false return value on mysqli_connect failure

From: Date: Sun, 13 Oct 2019 15:03:15 +0000
Subject: Doc #76151 [Opn->Csd]: Mention false return value on mysqli_connect failure
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17002@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76151&edit=1 ID: 76151 Updated by: cmb@php.net Reported by: phpbugs at personal dot formauri dot es Summary: Mention false return value on mysqli_connect failure -Status: Open +Status: Closed Type: Documentation Problem Package: MySQLi related Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2019-10-13 15:02:50] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=348150 Log: Fix #76151: Mention false return value on mysqli_connect failure ------------------------------------------------------------------------ [2018-03-26 18:09:30] requinix@php.net mysqli_connect and mysqli::__construct are the same thing internally so it is good for them to share documentation. Some other classes are in the same situation too, like DateTime. Including the return value is fine. ------------------------------------------------------------------------ [2018-03-26 16:46:15] phpbugs at personal dot formauri dot es Yes, my apologies. I was testing with mysqli_connect() and I believed the manual when it said that it was an alias of mysqli::__construct(). So I guess that mysqli_connect() should have a separate documentation if it handles the return value differently. ------------------------------------------------------------------------ [2018-03-26 15:52:22] requinix@php.net I believe phpbugs means the mysqli_connect function. ------------------------------------------------------------------------ [2018-03-26 15:49:18] danack@php.net Please could you provide a reproduce case, just to make adding a test be trivial. I think this behaviour is a bug since this RFC was passed: https://wiki.php.net/rfc/internal_constructor_behaviour ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=76151 -- Edit this bug report at https://bugs.php.net/bug.php?id=76151&edit=1

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