diff options
author | Marcus Boerger <helly@php.net> | 2003-07-20 18:00:54 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-07-20 18:00:54 +0000 |
commit | 7dd6f48f45152eed57c249ace0fa1c4d00a7fb51 (patch) | |
tree | 24cbc036d3dde7299c6203554b8251483f33015c /ext/sqlite/sqlite.c | |
parent | c9c1fcc026932278462578a7623dad4c7efd87fa (diff) | |
download | php-git-7dd6f48f45152eed57c249ace0fa1c4d00a7fb51.tar.gz |
SQLite objects are not cloneable. Maybe we allow this later for sqlite_db.
Diffstat (limited to 'ext/sqlite/sqlite.c')
-rw-r--r-- | ext/sqlite/sqlite.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sqlite/sqlite.c b/ext/sqlite/sqlite.c index 701735c15e..7a3c2858d0 100644 --- a/ext/sqlite/sqlite.c +++ b/ext/sqlite/sqlite.c @@ -734,6 +734,7 @@ static int php_sqlite_authorizer(void *autharg, int access_type, const char *arg ce.create_object = sqlite_object_new_ ## name; \ sqlite_ce_ ## name = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \ memcpy(&sqlite_object_handlers_ ## name, zend_get_std_object_handlers(), sizeof(zend_object_handlers)); \ + sqlite_object_handlers_ ## name.clone_obj = NULL; \ } zend_class_entry *sqlite_ce_db, *sqlite_ce_exception; @@ -803,7 +804,7 @@ static void sqlite_object_new(zend_class_entry *class_type, zend_object_handlers zend_hash_init(intern->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0); zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); - retval->handle = zend_objects_store_put(intern, sqlite_object_dtor, sqlite_object_clone TSRMLS_CC); + retval->handle = zend_objects_store_put(intern, sqlite_object_dtor, NULL TSRMLS_CC); retval->handlers = handlers; } |