From d072f6de544ec82cd76c4466fd12febde92c8cb1 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 28 Feb 2005 18:40:02 +0000 Subject: [PATCH] - Changing handler table definitively results in SEGVs --- ext/pdo/pdo_dbh.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 67433c768a..f537faf9cd 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -1195,12 +1195,8 @@ zend_object_value pdo_dbh_new(zend_class_entry *ce TSRMLS_DC) zend_hash_init(dbh->properties, 0, NULL, ZVAL_PTR_DTOR, 0); retval.handle = zend_objects_store_put(dbh, zend_objects_destroy_object, pdo_dbh_free_storage, NULL TSRMLS_CC); - if(ce == pdo_dbh_ce) { - retval.handlers = &pdo_dbh_object_handlers; - } - else { - retval.handlers = &std_object_handlers; - } + retval.handlers = &pdo_dbh_object_handlers; + return retval; } -- 2.50.1