mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Changing handler table definitively results in SEGVs
This commit is contained in:
parent
cfecb1face
commit
d072f6de54
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
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);
|
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;
|
retval.handlers = &pdo_dbh_object_handlers;
|
||||||
}
|
|
||||||
else {
|
|
||||||
retval.handlers = &std_object_handlers;
|
|
||||||
}
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue