php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36617 Improper comments in maxdb_*
Submitted: 2006-03-05 09:54 UTC Modified: 2006-03-07 00:54 UTC
From: takagi@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2006-03-05 09:54 UTC] takagi@php.net
Description:
------------
The following functions' document contains some improper comments in their example.

- maxdb_fetch_object()
- maxdb_fetch_row()
- maxdb_stmt_data_seek()

please take a look at the following patch for details.

Expected result:
----------------
Index: en/reference/maxdb/functions/maxdb-fetch-object.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/maxdb/functions/maxdb-fetch-object.xml,v
retrieving revision 1.3
diff -u -r1.3 maxdb-fetch-object.xml
--- en/reference/maxdb/functions/maxdb-fetch-object.xml 23 Jun 2005 16:53:23 -0000      1.3
+++ en/reference/maxdb/functions/maxdb-fetch-object.xml 5 Mar 2006 08:52:48 -0000
@@ -94,7 +94,7 @@

 if ($result = maxdb_query($link, $query)) {

-   /* fetch associative array */
+   /* fetch object array */
    while ($obj = maxdb_fetch_object($result)) {
        printf ("%s (%s)\n", $obj->NAME, $obj->STATE);
    }
Index: en/reference/maxdb/functions/maxdb-fetch-row.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/maxdb/functions/maxdb-fetch-row.xml,v
retrieving revision 1.2
diff -u -r1.2 maxdb-fetch-row.xml
--- en/reference/maxdb/functions/maxdb-fetch-row.xml    8 Mar 2005 16:39:06 -0000       1.2
+++ en/reference/maxdb/functions/maxdb-fetch-row.xml    5 Mar 2006 08:52:48 -0000
@@ -68,7 +68,7 @@

 if ($result = $maxdb->query($query)) {

-   /* fetch object array */
+   /* fetch enumerated array */
    while ($row = $result->fetch_row()) {
        printf ("%s (%s)\n", $row[0], $row[1]);
    }
@@ -100,7 +100,7 @@

 if ($result = maxdb_query($link, $query)) {

-   /* fetch associative array */
+   /* fetch enumerated array */
    while ($row = maxdb_fetch_row($result)) {
        printf ("%s (%s)\n", $row[0], $row[1]);
    }
Index: en/reference/maxdb/functions/maxdb-stmt-data-seek.xml
===================================================================
RCS file: /repository/phpdoc/en/reference/maxdb/functions/maxdb-stmt-data-seek.xml,v
retrieving revision 1.2
diff -u -r1.2 maxdb-stmt-data-seek.xml
--- en/reference/maxdb/functions/maxdb-stmt-data-seek.xml       8 Mar 2005 16:39:06 -0000       1.2
+++ en/reference/maxdb/functions/maxdb-stmt-data-seek.xml       5 Mar 2006 08:52:48 -0000
@@ -114,7 +114,7 @@
    /* store result */
    maxdb_stmt_store_result($stmt);

-   /* seek to row no. 400 */
+   /* seek to row no. 5 */
    maxdb_stmt_data_seek($stmt, 5);

    /* fetch values */



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-07 00:54 UTC] vrana@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 15:00:02 2025 UTC