My eclipse(Zend Studio 12) keeps showing an error in the source code of Drupal's database API that the class DatabaseStatementBase
implements the interface DatabaseStatementInterface
, but does not implement the abstract method DatabaseStatementInterface.rowCount()
.
I am talking about Line#2137 of: /includes/database/database.inc
I was wondering if this is a bug in Drupal or left out intentionally for some design reasons? Or some problem in my Zend Studio setup?
And how it is possible that DatabaseStatementBase
is not defined as an abstract class while it is not implementing this abstract method DatabaseStatementInterface.rowCount()
, and still no fatal errors raised.
It's not a bug,
DatabaseStatementBase
simply doesn't need to implementrowCount
.It extends
PDOStatement
, which does:PDOStatement::rowCount
.