Doc #54286 [Opn->Csd]: There is a typo describing output for pdo rowcount
| From: | aharvey@php.net | Date: | Thu, 17 Mar 2011 03:09:44 +0000 |
| Subject: | Doc #54286 [Opn->Csd]: There is a typo describing output for pdo rowcount | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6093@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54286&edit=1
ID: 54286
Updated by: aharvey@php.net
Reported by: mike dot mackintosh at angrystatic dot com
Summary: There is a typo describing output for pdo rowcount
-Status: Open
+Status: Closed
Type: Documentation Problem
-Package: Unknown/Other Function
+Package: Documentation problem
Operating System: OSX
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Good catch; thanks!
Previous Comments:
------------------------------------------------------------------------
[2011-03-17 04:09:40] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=309323
Log: Fix doc bug #54286 (There is a typo describing output for pdo
rowcount).
------------------------------------------------------------------------
[2011-03-17 04:00:43] mike dot mackintosh at angrystatic dot com
Description:
------------
---
From manual page: http://www.php.net/pdostatement.rowcount#Examples
---
/* Return number of rows that were deleted */
print("Return number of rows that were deleted:\n");
$count = $del->rowCount();
print("Deleted $count rows.\n");
The server says output is:
Deleted 9 rows.
Should read as:
Return number of rows that were deleted:
Deleted 9 rows.
Test script:
---------------
/* Return number of rows that were deleted */
print("Return number of rows that were deleted:\n");
$count = $del->rowCount();
print("Deleted $count rows.\n");
The example output is:
Deleted 9 rows.
Should read as:
Return number of rows that were deleted:
Deleted 9 rows.
Expected result:
----------------
example should read as:
Return number of rows that were deleted:
Deleted 9 rows.
Actual result:
--------------
The example output is:
Deleted 9 rows.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54286&edit=1