Doc #63687 [Opn->Nab]: documentation claiming "procedural code"

From: Date: Wed, 05 Dec 2012 09:03:22 +0000
Subject: Doc #63687 [Opn->Nab]: documentation claiming "procedural code"
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9260@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63687&edit=1 ID: 63687 Updated by: kalle@php.net Reported by: bill at fastpitchcentral dot com Summary: documentation claiming "procedural code" -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Hi There is no bug in the example, the object oriented code you are seeing in the example is due to the fact that 'mysqli_fetch_fields()' returns an object, to simulate what the first example does, while I agree it could be changed to use an array fetching function, one could argue the other way around. The object is not a specific requirement of the MySQLi API for procedural style, its just the way that the extension chooses to return the data for the user. Previous Comments: ------------------------------------------------------------------------ [2012-12-04 15:21:59] bill at fastpitchcentral dot com Description: ------------ --- From manual page: http://www.php.net/mysqli-result.fetch-fields#refsect1-mysqli- result.fetch-fields-seealso --- Your "Example #2 Procedural style" is incorrect. It contains numerous lines of code that are object-oriented instead of procedural. I love PHP. But for me it will never be an object-oriented language. The educational system in the USA is bad enough already. Don't add to the confusion by claiming code is procedural when it is not. The kids just will not understand. I suspect the problem is throughout the MYSQLI area and perhaps anywhere there is a presentation of object-oriented code and procedural code. Test script: --------------- N/A Expected result: ---------------- If your examples contain the title "procedural code" all the code should be procedural code. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63687&edit=1

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