php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54286 There is a typo describing output for pdo rowcount
Submitted: 2011-03-17 04:00 UTC Modified: 2011-03-17 04:09 UTC
From: mike dot mackintosh at angrystatic dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: OSX
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mike dot mackintosh at angrystatic dot com
New email:
PHP Version: OS:

 

 [2011-03-17 04:00 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-17 04:09 UTC] 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:09 UTC] aharvey@php.net
-Status: Open +Status: Closed -Package: Unknown/Other Function +Package: Documentation problem -Assigned To: +Assigned To: aharvey
 [2011-03-17 04:09 UTC] aharvey@php.net
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!
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 23:00:02 2026 UTC