Doc #60283 [NEW]: rollback would throw a PDOException
| From: | boaz dot rymland at gmail dot com | Date: | Sun, 13 Nov 2011 08:25:36 +0000 |
| Subject: | Doc #60283 [NEW]: rollback would throw a PDOException | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-7427@lists.php.net to get a copy of this message | ||
From:
Operating system: RedHat
PHP version: Irrelevant
Package: PDO related
Bug Type: Documentation Problem
Bug description:rollback would throw a PDOException
Description:
------------
---
From manual page: http://www.php.net/pdo.rollback#refsect1-pdo.rollback-
returnvalues
---
manual page on the php.net documentation should state that PDO::rollback
would
throw a PDOException on certain conditions, like if no transaction
existed.
The current documentation on the site says that it will return true on
success or
false on problems, and vaguely states that "It is an error to call this
method if
no transaction is active". this is vague and doesn't explain that an
exception
will be thrown.
This caused an un-handled exception in my code since in the upmost catch
block I
did a rollback to make sure that any open transaction is rolled-back. that
lead
to an un-handled exception... :-(
Expected result:
----------------
state in the documentation this possible PDOExcetion throwing
--
Edit bug report at https://bugs.php.net/bug.php?id=60283&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60283&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60283&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60283&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=60283&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60283&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=60283&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=60283&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=60283&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=60283&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=60283&r=support
Expected behavior: https://bugs.php.net/fix.php?id=60283&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=60283&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=60283&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=60283&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60283&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60283&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=60283&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=60283&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=60283&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=60283&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=60283&r=mysqlcfg