From: [EMAIL PROTECTED]
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Improper comments in maxdb_*
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 bug report at http://bugs.php.net/?id=36617&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36617&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36617&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36617&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36617&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36617&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36617&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36617&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36617&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36617&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36617&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36617&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36617&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36617&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36617&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36617&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36617&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36617&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36617&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36617&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36617&r=mysqlcfg