Doc #66807 [Opn->Csd]: The object-oriented style example contains procedural-style code
| From: | krakjoe@php.net | Date: | Thu, 17 Apr 2014 06:57:52 +0000 |
| Subject: | Doc #66807 [Opn->Csd]: The object-oriented style example contains procedural-style code | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11158@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66807&edit=1
ID: 66807
Updated by: krakjoe@php.net
Reported by: trentonmaki at gmail dot com
Summary: The object-oriented style example contains
procedural-style code
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.5.9
-Assigned To:
+Assigned To: krakjoe
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.
I don't know when this was fixed, but it has been.
Previous Comments:
------------------------------------------------------------------------
[2014-03-02 03:54:31] trentonmaki at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/mysqli-result.fetch-array
---
The object-oriented style example contains procedural-style code.
Snippet:
<?php
$link = mysqli_connect("localhost", "my_user", "my_password",
"world");
/* check connection */
if (mysqli_connect_errno()) { //<- here is the problem
printf("Connect failed: %s\n", mysqli_connect_error()); //<- As well as here
exit();
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66807&edit=1