Doc #54286 [NEW]: There is a typo describing output for pdo rowcount
| From: | mike dot mackintosh at angrystatic dot com | Date: | Thu, 17 Mar 2011 03:00:43 +0000 |
| Subject: | Doc #54286 [NEW]: There is a typo describing output for pdo rowcount | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6092@lists.php.net to get a copy of this message | ||
From:
Operating system: OSX
PHP version: Irrelevant
Package: Unknown/Other Function
Bug Type: Documentation Problem
Bug description:There is a typo describing output for pdo rowcount
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 bug report at http://bugs.php.net/bug.php?id=54286&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54286&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54286&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54286&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54286&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54286&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54286&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54286&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54286&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54286&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54286&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54286&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54286&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54286&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54286&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54286&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54286&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54286&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54286&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54286&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54286&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54286&r=mysqlcfg