diff --git a/processor/foot.m4 b/processor/foot.m4 index d92d361..9924be0 100644 --- a/processor/foot.m4 +++ b/processor/foot.m4 @@ -121,7 +121,6 @@ dnl }}} EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_t *src, zend_class_entry **index_to_ce TSRMLS_DC)') dnl {{{ { xc_processor_t processor; - size_t i; memset(&processor, 0, sizeof(processor)); processor.handle_reference = src->have_references; @@ -135,6 +134,7 @@ EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_ #ifdef ZEND_ENGINE_2 if (src->objects_count) { + zend_uint i; processor.object_handles = emalloc(sizeof(*processor.object_handles) * src->objects_count); for (i = 0; i < src->objects_count; ++i) { zend_object *object = emalloc(sizeof(*object)); @@ -150,6 +150,7 @@ EXPORTED_FUNCTION(`zval *xc_processor_restore_var(zval *dst, const xc_entry_var_ #ifdef ZEND_ENGINE_2 if (src->objects_count) { + zend_uint i; for (i = 0; i < src->objects_count; ++i) { zend_objects_store_del_ref_by_handle(processor.object_handles[i] TSRMLS_CC); } diff --git a/xcache.c b/xcache.c index 9074e12..3cdc608 100644 --- a/xcache.c +++ b/xcache.c @@ -539,6 +539,7 @@ static zend_function_entry xcache_functions[] = /* {{{ */ PHP_FE(xcache_get_op_type, arginfo_xcache_get_op_type) PHP_FE(xcache_get_data_type, arginfo_xcache_get_data_type) PHP_FE(xcache_get_opcode, arginfo_xcache_get_opcode) + PHP_FE(xcache_get_op_spec, arginfo_xcache_get_op_spec) PHP_FE(xcache_get_opcode_spec, arginfo_xcache_get_opcode_spec) PHP_FE(xcache_coredump, arginfo_xcache_coredump) PHP_FE(xcache_is_autoglobal, arginfo_xcache_is_autoglobal) diff --git a/xcache/xc_mutex.c b/xcache/xc_mutex.c index 68dd5e0..c730593 100644 --- a/xcache/xc_mutex.c +++ b/xcache/xc_mutex.c @@ -247,6 +247,7 @@ size_t xc_mutex_size(void) /* {{{ */ xc_mutex_t *xc_mutex_init(xc_mutex_t *const shared_mutex, const char *pathname, unsigned char want_inter_process) /* {{{ */ { xc_mutex_t *mutex = NULL; + (void) want_inter_process; /* may be unused */ #ifndef HAVE_FORK want_inter_process = 0;