Commit f93f9235 authored by Dries's avatar Dries

- Patch #341038 by jhodgdon, kathyh, sdboyer: Docblock for DatabaseStatementInterface is a bit off.

parent 336fef3d
...@@ -1896,21 +1896,19 @@ public function rollback() { ...@@ -1896,21 +1896,19 @@ public function rollback() {
} }
/** /**
* A prepared statement. * Represents a prepared statement.
* *
* Some methods in that class are purposely commented out. Due to a change in * Some methods in that class are purposefully commented out. Due to a change in
* how PHP defines PDOStatement, we can't define a signature for those methods * how PHP defines PDOStatement, we can't define a signature for those methods
* that will work the same way between versions older than 5.2.6 and later * that will work the same way between versions older than 5.2.6 and later
* versions. * versions. See http://bugs.php.net/bug.php?id=42452 for more details.
*
* Please refer to http://bugs.php.net/bug.php?id=42452 for more details.
* *
* Child implementations should either extend PDOStatement: * Child implementations should either extend PDOStatement:
* @code * @code
* class DatabaseStatement_oracle extends PDOStatement implements DatabaseStatementInterface {} * class DatabaseStatement_oracle extends PDOStatement implements DatabaseStatementInterface {}
* @endcode * @endcode
* or implement their own class, but in that case they will also have to * or define their own class. If defining their own class, they will also have
* implement the Iterator or IteratorArray interfaces before * to implement either the Iterator or IteratorAggregate interface before
* DatabaseStatementInterface: * DatabaseStatementInterface:
* @code * @code
* class DatabaseStatement_oracle implements Iterator, DatabaseStatementInterface {} * class DatabaseStatement_oracle implements Iterator, DatabaseStatementInterface {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment