diff options
Diffstat (limited to 'ext/pdo')
| -rwxr-xr-x | ext/pdo/pdo_dbh.c | 1 | ||||
| -rwxr-xr-x | ext/pdo/tests/pdo_023_def.inc | 6 | ||||
| -rwxr-xr-x | ext/pdo/tests/pdo_026.inc | 6 |
3 files changed, 1 insertions, 12 deletions
diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 29b0a716cd..20579a1000 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1075,6 +1075,7 @@ void pdo_dbh_init(TSRMLS_D) INIT_CLASS_ENTRY(ce, "PDO", pdo_dbh_functions); pdo_dbh_ce = zend_register_internal_class(&ce TSRMLS_CC); pdo_dbh_ce->create_object = pdo_dbh_new; + pdo_dbh_ce->constructor->common.fn_flags |= ZEND_ACC_FINAL; memcpy(&pdo_dbh_object_handlers, &std_object_handlers, sizeof(zend_object_handlers)); pdo_dbh_object_handlers.get_method = dbh_method_get; diff --git a/ext/pdo/tests/pdo_023_def.inc b/ext/pdo/tests/pdo_023_def.inc index 62a5d21313..1fb1980995 100755 --- a/ext/pdo/tests/pdo_023_def.inc +++ b/ext/pdo/tests/pdo_023_def.inc @@ -21,12 +21,6 @@ class PDODatabaseX extends PDO { public $test1 = 1; - function __construct($connect) - { - echo __METHOD__ . "()\n"; - parent::__construct($connect); - } - function __destruct() { echo __METHOD__ . "()\n"; diff --git a/ext/pdo/tests/pdo_026.inc b/ext/pdo/tests/pdo_026.inc index c5f2ce565b..b94ea17c3a 100755 --- a/ext/pdo/tests/pdo_026.inc +++ b/ext/pdo/tests/pdo_026.inc @@ -30,12 +30,6 @@ class PDOStatementX extends PDOStatement class PDODatabase extends PDO { - function __construct($connect) - { - echo __METHOD__ . "()\n"; - parent::__construct($connect); - } - function __destruct() { echo __METHOD__ . "()\n"; |
