I have the following code and try to run it in hphpi:
class DatabaseStatementBase extends PDOStatement implements DatabaseStatementInterface {
...
}
1st problem: There is no rowCount() method in there. PHP doesn't mind that, but hphpi complains.
If I implement the method to overcome the problem I get to:
2nd problem:
Access level to __construct must be public or weaker (as in class PDOStatement)
this is from loadMethodTable in src/runtime/eval/ast/class_statement.cpp.
If I change the access level to public I get
PDOException: SQLSTATE[HY000]: General error: user-supplied statement
class cannot have a public constructor in main() (line
of )
So probably loadMethodTable needs to be changed.
I have the following code and try to run it in hphpi:
class DatabaseStatementBase extends PDOStatement implements DatabaseStatementInterface {
...
}
1st problem: There is no rowCount() method in there. PHP doesn't mind that, but hphpi complains.
If I implement the method to overcome the problem I get to:
2nd problem:
Access level to __construct must be public or weaker (as in class PDOStatement)
this is from loadMethodTable in src/runtime/eval/ast/class_statement.cpp.
If I change the access level to public I get
PDOException: SQLSTATE[HY000]: General error: user-supplied statement
class cannot have a public constructor in main() (line
of )
So probably loadMethodTable needs to be changed.