kill some warnings
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1565 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
5eb6e2f585
commit
4bd347e02b
|
@ -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);
|
||||
}
|
||||
|
|
1
xcache.c
1
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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue