#36617 [Opn->Csd]: Improper comments in maxdb_*

From: Date: Mon, 06 Mar 2006 23:54:15 +0000
Subject: #36617 [Opn->Csd]: Improper comments in maxdb_*
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372256@lists.php.net to get a copy of this message
ID: 36617 Updated by: vrana@php.net Reported By: takagi@php.net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant 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: ------------------------------------------------------------------------ [2006-03-05 09:54:59] 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 */ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36617&edit=1

« previous php.doc (#969372256) next »