/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 1.3.29
 * 
 * This file is not intended to be easily readable and contains a number of 
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG 
 * interface file instead. 
 * ----------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC)
#   if (__SUNPRO_CC <= 0x560)
#     define SWIGTEMPLATEDISAMBIGUATOR template
#   else
#     define SWIGTEMPLATEDISAMBIGUATOR 
#   endif
# else
#   define SWIGTEMPLATEDISAMBIGUATOR 
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__)) 
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__)) 
# else
#   define SWIGUNUSED 
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif 
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* -----------------------------------------------------------------------------
 * swigrun.swg
 *
 * This file contains generic CAPI SWIG runtime support for pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "2"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the swig runtime code.
  In 99.9% of the cases, swig just needs to declare them as 'static'.
  
  But only do this if is strictly necessary, ie, if you have problems
  with your compiler or so.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

/*  Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif

/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN        0x1

/* Flags for new pointer objects */
#define SWIG_POINTER_OWN           0x1


/* 
   Flags/methods for returning states.
   
   The swig conversion methods, as ConvertPtr, return and integer 
   that tells if the conversion was successful or not. And if not,
   an error code can be returned (see swigerrors.swg for the codes).
   
   Use the following macros/flags to set or process the returning
   states.
   
   In old swig versions, you usually write code as:

     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
       // success code
     } else {
       //fail code
     }

   Now you can be more explicit as:

    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
    } else {
      // fail code
    }

   that seems to be the same, but now you can also do

    Type *ptr;
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
      if (SWIG_IsNewObj(res) {
        ...
	delete *ptr;
      } else {
        ...
      }
    } else {
      // fail code
    }
    
   I.e., now SWIG_ConvertPtr can return new objects and you can
   identify the case and take care of the deallocation. Of course that
   requires also to SWIG_ConvertPtr to return new result values, as

      int SWIG_ConvertPtr(obj, ptr,...) {         
        if (<obj is ok>) {			       
          if (<need new object>) {		       
            *ptr = <ptr to new allocated object>; 
            return SWIG_NEWOBJ;		       
          } else {				       
            *ptr = <ptr to old object>;	       
            return SWIG_OLDOBJ;		       
          } 				       
        } else {				       
          return SWIG_BADOBJ;		       
        }					       
      }

   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
   swig errors code.

   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
   allows to return the 'cast rank', for example, if you have this

       int food(double)
       int fooi(int);

   and you call
 
      food(1)   // cast rank '1'  (1 -> 1.0)
      fooi(1)   // cast rank '0'

   just use the SWIG_AddCast()/SWIG_CheckState()


 */
#define SWIG_OK                    (0) 
#define SWIG_ERROR                 (-1)
#define SWIG_IsOK(r)               (r >= 0)
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  

/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT         (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
/* The TmpMask is for in/out typemaps that use temporal objects */
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ                (SWIG_ERROR)
#define SWIG_OLDOBJ                (SWIG_OK)
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del mask methods */
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))


/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
#  ifndef SWIG_TypeRank
#    define SWIG_TypeRank             unsigned long
#  endif
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
#    define SWIG_MAXCASTRANK          (2)
#  endif
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) { 
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) { 
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
}
#else /* no cast-rank mode */
#  define SWIG_AddCast
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif




#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store inforomation on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
  int                    owndata;		/* flag if the structure owns the clientdata */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;

/* 
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  }
  return (l1 - f1) - (l2 - f2);
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCompare(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}


/* think of this as a c++ template<> or a scheme macro */
#define SWIG_TypeCheck_Template(comparison, ty)         \
  if (ty) {                                             \
    swig_cast_info *iter = ty->cast;                    \
    while (iter) {                                      \
      if (comparison) {                                 \
        if (iter == ty->cast) return iter;              \
        /* Move iter to the top of the linked list */   \
        iter->prev->next = iter->next;                  \
        if (iter->next)                                 \
          iter->next->prev = iter->prev;                \
        iter->next = ty->cast;                          \
        iter->prev = 0;                                 \
        if (ty->cast) ty->cast->prev = iter;            \
        ty->cast = iter;                                \
        return iter;                                    \
      }                                                 \
      iter = iter->next;                                \
    }                                                   \
  }                                                     \
  return 0

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
}

/* Same as previous function, except strcmp is replaced with a pointer comparison */
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
  SWIG_TypeCheck_Template(iter->type == from, into);
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
}

/* 
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  if (!type) return NULL;
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/* 
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  swig_cast_info *cast = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;
  
  while (cast) {
    if (!cast->converter) {
      swig_type_info *tc = cast->type;
      if (!tc->clientdata) {
	SWIG_TypeClientData(tc, clientdata);
      }
    }    
    cast = cast->next;
  }
}
SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  SWIG_TypeClientData(ti, clientdata);
  ti->owndata = 1;
}
  
/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)
  
  We start searching at module start, and finish searching when start == end.  
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start, 
                            swig_module_info *end, 
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      register size_t l = 0;
      register size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	register size_t i = (l + r) >> 1; 
	const char *iname = iter->types[i]->name;
	if (iname) {
	  register int compare = strcmp(name, iname);
	  if (compare == 0) {	    
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).
  
  We start searching at module start, and finish searching when start == end.  
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start, 
                     swig_module_info *end, 
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      register size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }
  
  /* neither found a match */
  return 0;
}

/* 
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  register const unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    register unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/* 
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  register unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    register char d = *(c++);
    register unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = ((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = ((d - ('a'-10)) << 4);
    else 
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (d - ('a'-10));
    else 
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/* 
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------
 * See the LICENSE file for information on copyright, usage and redistribution
 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
 *
 * php4run.swg
 *
 * PHP4 runtime library
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#endif
#include "zend.h"
#include "zend_API.h"
#include "php.h"

/* These TSRMLS_ stuff should already be defined now, but with older php under
   redhat are not... */
#ifndef TSRMLS_D
#define TSRMLS_D
#endif
#ifndef TSRMLS_DC
#define TSRMLS_DC
#endif
#ifndef TSRMLS_C
#define TSRMLS_C
#endif
#ifndef TSRMLS_CC
#define TSRMLS_CC
#endif

#ifdef __cplusplus
}
#endif

/* But in fact SWIG_ConvertPtr is the native interface for getting typed
   pointer values out of zvals.  We need the TSRMLS_ macros for when we
   make PHP type calls later as we handle php resources */
#define SWIG_ConvertPtr(obj,pp,type,flags) SWIG_ZTS_ConvertPtr(obj,pp,type,flags TSRMLS_CC)


#define SWIG_fail goto fail

static char *default_error_msg = "Unknown error occurred";
static int default_error_code = E_ERROR;

#define SWIG_PHP_Arg_Error_Msg(argnum,extramsg) "Error in argument " #argnum " "#extramsg

#define SWIG_PHP_Error(code,msg) ErrorCode() = code; ErrorMsg() = msg; SWIG_fail;

#define SWIG_contract_assert(expr,msg) \
  if (!(expr) ) { zend_printf("Contract Assert Failed %s\n",msg ); } else

/* Standard SWIG API */
#define SWIG_GetModule(clientdata) SWIG_Php4_GetModule()
#define SWIG_SetModule(clientdata, pointer) SWIG_Php4_SetModule(pointer)

/* used to wrap returned objects in so we know whether they are newobject
   and need freeing, or not */
typedef struct _swig_object_wrapper {
  void * ptr;
  int newobject;
} swig_object_wrapper;

/* empty zend destructor for types without one */
static ZEND_RSRC_DTOR_FUNC(SWIG_landfill) {};

#define SWIG_SetPointerZval(a,b,c,d) SWIG_ZTS_SetPointerZval(a,b,c,d, SWIG_module_entry TSRMLS_CC)

static void
SWIG_ZTS_SetPointerZval(zval *z, void *ptr, swig_type_info *type, int newobject, zend_module_entry* module_entry TSRMLS_DC) {
  swig_object_wrapper *value=NULL;
  /*
   * First test for Null pointers.  Return those as PHP native NULL
   */
  if (!ptr ) {
    ZVAL_NULL(z);
    return;
  }
  if (type->clientdata) {
    if (! (*(int *)(type->clientdata)))
      zend_error(E_ERROR, "Type: %s failed to register with zend",type->name);
    value=(swig_object_wrapper *)emalloc(sizeof(swig_object_wrapper));
    value->ptr=ptr;
    value->newobject=newobject;
    ZEND_REGISTER_RESOURCE(z, value, *(int *)(type->clientdata));
    return;
  } else { /* have to deal with old fashioned string pointer?
              but this should not get this far */
    zend_error(E_ERROR, "Type: %s not registered with zend",type->name);
  }
}

/* This is a new pointer conversion routine
   Taking the native pointer p (which would have been converted from the old
   string pointer) and it's php type id, and it's type name (which also would
   have come from the old string pointer) it converts it to ptr calling 
   appropriate casting functions according to ty
   Sadly PHP has no API to find a type name from a type id, only from an instance
   of a resource of the type id, so we have to pass type_name as well.
   The two functions which might call this are:
   SWIG_ZTS_ConvertResourcePtr which gets the type name from the resource
   and the registered zend destructors for which we have one per type each
   with the type name hard wired in. */
static int
SWIG_ZTS_ConvertResourceData(void * p, int type, const char *type_name, void **ptr, swig_type_info *ty TSRMLS_DC) {
  swig_cast_info *tc;

  if (ty) {
    if (! type_name) {  
      /* can't convert p to ptr type ty if we don't know what type p is */
      return -1;
    } else {
      /* convert and cast p from type_name to ptr as ty
         Need to sort out const-ness, can SWIG_TypeCast really not take a const? */
      tc = SWIG_TypeCheck((char *)type_name,ty);
      if (!tc) return -1;
      *ptr = SWIG_TypeCast(tc, (void*)p);
    }
  } else {
    /* They don't care about the target type, so just pass on the pointer! */
    *ptr = (void *) p;
  }
  return 0;
}

/* This function fills ptr with a pointer of type ty by extracting the pointer
   and type info from the resource in z.  z must be a resource
   It uses SWIG_ZTS_ConvertResourceData to do the real work. */
static int
SWIG_ZTS_ConvertResourcePtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC) {
  swig_object_wrapper *value;
  void *p;
  int type;
  char *type_name;

  value = (swig_object_wrapper *) zend_list_find(z->value.lval,&type);
  if ( flags && SWIG_POINTER_DISOWN ) {
    value->newobject = 0;
  }
  p = value->ptr;
  if (type==-1) return -1;

  type_name=zend_rsrc_list_get_rsrc_type(z->value.lval TSRMLS_CC);

  return SWIG_ZTS_ConvertResourceData(p,type,type_name,ptr,ty TSRMLS_CC);
}

/* We allow passing of a STRING or RESOURCE pointing to the object
   or an OBJECT whose _cPtr is a string or resource pointing to the object
   STRING pointers are very depracated */
static int
SWIG_ZTS_ConvertPtr(zval *z, void **ptr, swig_type_info *ty, int flags TSRMLS_DC) {
   char *c;
   zval *val;
   
   if(z == NULL) {
	*ptr = 0;
	return 0;
   }

   if (z->type==IS_OBJECT) {
     zval ** _cPtr;
     if (zend_hash_find(HASH_OF(z),"_cPtr",sizeof("_cPtr"),(void**)&_cPtr)==SUCCESS) {
       /* Don't co-erce to string if it isn't */
       if ((*_cPtr)->type==IS_STRING) c = Z_STRVAL_PP(_cPtr);
       else if ((*_cPtr)->type==IS_RESOURCE) {
         return SWIG_ZTS_ConvertResourcePtr(*_cPtr,ptr,ty, flags TSRMLS_CC);
       } else goto type_error; /* _cPtr was not string or resource property */
     } else goto type_error; /* can't find property _cPtr */
   } else if (z->type==IS_RESOURCE) {
     return SWIG_ZTS_ConvertResourcePtr(z,ptr,ty, flags TSRMLS_CC);
   } if (z->type==IS_NULL ) {
     *ptr = 0;
     return 0;
   } else goto type_error;

type_error:

    return -1;
}

static char const_name[] = "swig_runtime_data_type_pointer";
static swig_module_info *SWIG_Php4_GetModule() {
  zval *pointer;
  swig_module_info *ret = 0;

  MAKE_STD_ZVAL(pointer);

  TSRMLS_FETCH();

  if (zend_get_constant(const_name, sizeof(const_name), pointer TSRMLS_CC)) {
    if (pointer->type == IS_LONG) {
      ret = (swig_module_info *) pointer->value.lval;
    }
  } 
  FREE_ZVAL(pointer);
  return ret; 
}

static void SWIG_Php4_SetModule(swig_module_info *pointer) {
  TSRMLS_FETCH();
  REGISTER_MAIN_LONG_CONSTANT(const_name, (long) pointer, 0);
}


/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_int swig_types[0]
#define SWIGTYPE_p_X509 swig_types[1]
#define SWIGTYPE_p_char swig_types[2]
#define SWIGTYPE_p_f_p_void__void swig_types[3]
#define SWIGTYPE_p_f_p_void_size_t__p_void swig_types[4]
#define SWIGTYPE_p_f_size_t__p_void swig_types[5]
#define SWIGTYPE_p_fdtype swig_types[6]
#define SWIGTYPE_p_int swig_types[7]
#define SWIGTYPE_p_p_char swig_types[8]
#define SWIGTYPE_p_p_void swig_types[9]
#define SWIGTYPE_p_p_zx_ns_s swig_types[10]
#define SWIGTYPE_p_p_zx_xenc_EncryptedKey_s swig_types[11]
#define SWIGTYPE_p_time_t swig_types[12]
#define SWIGTYPE_p_timeval swig_types[13]
#define SWIGTYPE_p_unsigned_char swig_types[14]
#define SWIGTYPE_p_void swig_types[15]
#define SWIGTYPE_p_zx_a_Address_s swig_types[16]
#define SWIGTYPE_p_zx_a_EndpointReference_s swig_types[17]
#define SWIGTYPE_p_zx_any_attr_s swig_types[18]
#define SWIGTYPE_p_zx_any_elem_s swig_types[19]
#define SWIGTYPE_p_zx_ctx swig_types[20]
#define SWIGTYPE_p_zx_dap_QueryItem_s swig_types[21]
#define SWIGTYPE_p_zx_dap_Query_s swig_types[22]
#define SWIGTYPE_p_zx_dap_ResultQuery_s swig_types[23]
#define SWIGTYPE_p_zx_dap_Select_s swig_types[24]
#define SWIGTYPE_p_zx_dap_Subscription_s swig_types[25]
#define SWIGTYPE_p_zx_dap_TestItem_s swig_types[26]
#define SWIGTYPE_p_zx_dap_TestOp_s swig_types[27]
#define SWIGTYPE_p_zx_di_Query_s swig_types[28]
#define SWIGTYPE_p_zx_ds_KeyInfo_s swig_types[29]
#define SWIGTYPE_p_zx_ds_Reference_s swig_types[30]
#define SWIGTYPE_p_zx_ds_Signature_s swig_types[31]
#define SWIGTYPE_p_zx_e_Body_s swig_types[32]
#define SWIGTYPE_p_zx_e_Envelope_s swig_types[33]
#define SWIGTYPE_p_zx_e_Header_s swig_types[34]
#define SWIGTYPE_p_zx_elem_s swig_types[35]
#define SWIGTYPE_p_zx_ff12_Assertion_s swig_types[36]
#define SWIGTYPE_p_zx_md_ArtifactResolutionService_s swig_types[37]
#define SWIGTYPE_p_zx_md_AssertionConsumerService_s swig_types[38]
#define SWIGTYPE_p_zx_md_EntityDescriptor_s swig_types[39]
#define SWIGTYPE_p_zx_md_IDPSSODescriptor_s swig_types[40]
#define SWIGTYPE_p_zx_md_KeyDescriptor_s swig_types[41]
#define SWIGTYPE_p_zx_md_ManageNameIDService_s swig_types[42]
#define SWIGTYPE_p_zx_md_SPSSODescriptor_s swig_types[43]
#define SWIGTYPE_p_zx_md_SingleLogoutService_s swig_types[44]
#define SWIGTYPE_p_zx_md_SingleSignOnService_s swig_types[45]
#define SWIGTYPE_p_zx_node_s swig_types[46]
#define SWIGTYPE_p_zx_ns_s swig_types[47]
#define SWIGTYPE_p_zx_root_s swig_types[48]
#define SWIGTYPE_p_zx_sa11_Assertion_s swig_types[49]
#define SWIGTYPE_p_zx_sa_Assertion_s swig_types[50]
#define SWIGTYPE_p_zx_sa_AttributeStatement_s swig_types[51]
#define SWIGTYPE_p_zx_sa_Attribute_s swig_types[52]
#define SWIGTYPE_p_zx_sa_AuthnStatement_s swig_types[53]
#define SWIGTYPE_p_zx_sa_EncryptedAssertion_s swig_types[54]
#define SWIGTYPE_p_zx_sa_EncryptedID_s swig_types[55]
#define SWIGTYPE_p_zx_sa_Issuer_s swig_types[56]
#define SWIGTYPE_p_zx_sa_NameID_s swig_types[57]
#define SWIGTYPE_p_zx_sa_Subject_s swig_types[58]
#define SWIGTYPE_p_zx_sp_ArtifactResolve_s swig_types[59]
#define SWIGTYPE_p_zx_sp_AuthnRequest_s swig_types[60]
#define SWIGTYPE_p_zx_sp_LogoutRequest_s swig_types[61]
#define SWIGTYPE_p_zx_sp_LogoutResponse_s swig_types[62]
#define SWIGTYPE_p_zx_sp_ManageNameIDRequest_s swig_types[63]
#define SWIGTYPE_p_zx_sp_ManageNameIDResponse_s swig_types[64]
#define SWIGTYPE_p_zx_sp_NewEncryptedID_s swig_types[65]
#define SWIGTYPE_p_zx_sp_Response_s swig_types[66]
#define SWIGTYPE_p_zx_sp_Status_s swig_types[67]
#define SWIGTYPE_p_zx_str swig_types[68]
#define SWIGTYPE_p_zx_tok swig_types[69]
#define SWIGTYPE_p_zx_xac_Attribute_s swig_types[70]
#define SWIGTYPE_p_zx_xac_Response_s swig_types[71]
#define SWIGTYPE_p_zx_xasa_XACMLAuthzDecisionStatement_s swig_types[72]
#define SWIGTYPE_p_zx_xasp_XACMLAuthzDecisionQuery_s swig_types[73]
#define SWIGTYPE_p_zx_xenc_EncryptedData_s swig_types[74]
#define SWIGTYPE_p_zx_xenc_EncryptedKey_s swig_types[75]
#define SWIGTYPE_p_zxid_atsrc swig_types[76]
#define SWIGTYPE_p_zxid_attr swig_types[77]
#define SWIGTYPE_p_zxid_cgi swig_types[78]
#define SWIGTYPE_p_zxid_conf swig_types[79]
#define SWIGTYPE_p_zxid_cstr_list swig_types[80]
#define SWIGTYPE_p_zxid_curl_ctx swig_types[81]
#define SWIGTYPE_p_zxid_entity swig_types[82]
#define SWIGTYPE_p_zxid_map swig_types[83]
#define SWIGTYPE_p_zxid_need swig_types[84]
#define SWIGTYPE_p_zxid_ses swig_types[85]
#define SWIGTYPE_p_zxsig_ref swig_types[86]
static swig_type_info *swig_types[88];
static swig_module_info swig_module = {swig_types, 87, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

/* -------- TYPES TABLE (END) -------- */

/* header section */
/*
  +----------------------------------------------------------------------+
  | PHP version 4.0                                                      |
  +----------------------------------------------------------------------+
  | Copyright (c) 1997, 1998, 1999, 2000, 2001 The PHP Group             |
  +----------------------------------------------------------------------+
  | This source file is subject to version 2.02 of the PHP license,      |
  | that is bundled with this package in the file LICENSE, and is        |
  | available at through the world-wide-web at                           |
  | http://www.php.net/license/2_02.txt.                                 |
  | If you did not receive a copy of the PHP license and are unable to   |
  | obtain it through the world-wide-web, please send a note to          |
  | license@php.net so we can mail you a copy immediately.               |
  +----------------------------------------------------------------------+
  | Authors:                                                             |
  |                                                                      |
  +----------------------------------------------------------------------+
 */
ZEND_BEGIN_MODULE_GLOBALS(zxid)
char *error_msg;
int error_code;
ZEND_END_MODULE_GLOBALS(zxid)
ZEND_DECLARE_MODULE_GLOBALS(zxid)
#ifdef ZTS
#define ErrorMsg() TSRMG(zxid_globals_id, zend_zxid_globals *, error_msg )
#define ErrorCode() TSRMG(zxid_globals_id, zend_zxid_globals *, error_code )
#else
#define ErrorMsg() (zxid_globals.error_msg)
#define ErrorCode() (zxid_globals.error_code)
#endif

static void zxid_init_globals(zend_zxid_globals *zxid_globals ) {
  zxid_globals->error_msg = default_error_msg;
  zxid_globals->error_code = default_error_code;
}
static void zxid_destroy_globals(zend_zxid_globals *zxid_globals) { }

void SWIG_ResetError() {
  TSRMLS_FETCH();
  ErrorMsg() = default_error_msg;
  ErrorCode() = default_error_code;
}
#define SWIG_name  "zxid"
#ifdef __cplusplus
extern "C" {
#endif
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_zxid.h"
#ifdef __cplusplus
}
#endif



#include "errmac.h"
#include "zx.h"
#include "zxid.h"
#include "saml2.h"

#include "c/zx-const.h"
#include "c/zx-data.h"
#include "c/zx-ns.h"
#include "c/zxidvers.h"


/* class entry subsection */


/* entry subsection */
/* Every non-class user visible function must have an entry here */
function_entry zxid_functions[] = {
  ZEND_NAMED_FE(zx_ns_s_n_set,_wrap_zx_ns_s_n_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_n_get,_wrap_zx_ns_s_n_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_m_set,_wrap_zx_ns_s_m_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_m_get,_wrap_zx_ns_s_m_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_set,_wrap_zx_ns_s_seen_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_get,_wrap_zx_ns_s_seen_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_n_set,_wrap_zx_ns_s_seen_n_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_n_get,_wrap_zx_ns_s_seen_n_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_p_set,_wrap_zx_ns_s_seen_p_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_p_get,_wrap_zx_ns_s_seen_p_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_pop_set,_wrap_zx_ns_s_seen_pop_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_seen_pop_get,_wrap_zx_ns_s_seen_pop_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_inc_n_set,_wrap_zx_ns_s_inc_n_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_inc_n_get,_wrap_zx_ns_s_inc_n_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_prefix_len_set,_wrap_zx_ns_s_prefix_len_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_prefix_len_get,_wrap_zx_ns_s_prefix_len_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_prefix_set,_wrap_zx_ns_s_prefix_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_prefix_get,_wrap_zx_ns_s_prefix_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_url_len_set,_wrap_zx_ns_s_url_len_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_url_len_get,_wrap_zx_ns_s_url_len_get, NULL)
  ZEND_NAMED_FE(zx_ns_s_url_set,_wrap_zx_ns_s_url_set, NULL)
  ZEND_NAMED_FE(zx_ns_s_url_get,_wrap_zx_ns_s_url_get, NULL)
  ZEND_NAMED_FE(new_zx_ns_s,_wrap_new_zx_ns_s, NULL)
  ZEND_NAMED_FE(zx_ctx_base_set,_wrap_zx_ctx_base_set, NULL)
  ZEND_NAMED_FE(zx_ctx_base_get,_wrap_zx_ctx_base_get, NULL)
  ZEND_NAMED_FE(zx_ctx_p_set,_wrap_zx_ctx_p_set, NULL)
  ZEND_NAMED_FE(zx_ctx_p_get,_wrap_zx_ctx_p_get, NULL)
  ZEND_NAMED_FE(zx_ctx_lim_set,_wrap_zx_ctx_lim_set, NULL)
  ZEND_NAMED_FE(zx_ctx_lim_get,_wrap_zx_ctx_lim_get, NULL)
  ZEND_NAMED_FE(zx_ctx_ns_tab_set,_wrap_zx_ctx_ns_tab_set, NULL)
  ZEND_NAMED_FE(zx_ctx_ns_tab_get,_wrap_zx_ctx_ns_tab_get, NULL)
  ZEND_NAMED_FE(zx_ctx_unknown_ns_set,_wrap_zx_ctx_unknown_ns_set, NULL)
  ZEND_NAMED_FE(zx_ctx_unknown_ns_get,_wrap_zx_ctx_unknown_ns_get, NULL)
  ZEND_NAMED_FE(zx_ctx_guard_seen_n_set,_wrap_zx_ctx_guard_seen_n_set, NULL)
  ZEND_NAMED_FE(zx_ctx_guard_seen_n_get,_wrap_zx_ctx_guard_seen_n_get, NULL)
  ZEND_NAMED_FE(zx_ctx_guard_seen_p_set,_wrap_zx_ctx_guard_seen_p_set, NULL)
  ZEND_NAMED_FE(zx_ctx_guard_seen_p_get,_wrap_zx_ctx_guard_seen_p_get, NULL)
  ZEND_NAMED_FE(zx_ctx_exclude_sig_set,_wrap_zx_ctx_exclude_sig_set, NULL)
  ZEND_NAMED_FE(zx_ctx_exclude_sig_get,_wrap_zx_ctx_exclude_sig_get, NULL)
  ZEND_NAMED_FE(zx_ctx_inc_ns_len_set,_wrap_zx_ctx_inc_ns_len_set, NULL)
  ZEND_NAMED_FE(zx_ctx_inc_ns_len_get,_wrap_zx_ctx_inc_ns_len_get, NULL)
  ZEND_NAMED_FE(zx_ctx_inc_ns_set,_wrap_zx_ctx_inc_ns_set, NULL)
  ZEND_NAMED_FE(zx_ctx_inc_ns_get,_wrap_zx_ctx_inc_ns_get, NULL)
  ZEND_NAMED_FE(zx_ctx_malloc_func_set,_wrap_zx_ctx_malloc_func_set, NULL)
  ZEND_NAMED_FE(zx_ctx_malloc_func_get,_wrap_zx_ctx_malloc_func_get, NULL)
  ZEND_NAMED_FE(zx_ctx_realloc_func_set,_wrap_zx_ctx_realloc_func_set, NULL)
  ZEND_NAMED_FE(zx_ctx_realloc_func_get,_wrap_zx_ctx_realloc_func_get, NULL)
  ZEND_NAMED_FE(zx_ctx_free_func_set,_wrap_zx_ctx_free_func_set, NULL)
  ZEND_NAMED_FE(zx_ctx_free_func_get,_wrap_zx_ctx_free_func_get, NULL)
  ZEND_NAMED_FE(new_zx_ctx,_wrap_new_zx_ctx, NULL)
  ZEND_NAMED_FE(zx_node_s_n_set,_wrap_zx_node_s_n_set, NULL)
  ZEND_NAMED_FE(zx_node_s_n_get,_wrap_zx_node_s_n_get, NULL)
  ZEND_NAMED_FE(zx_node_s_wo_set,_wrap_zx_node_s_wo_set, NULL)
  ZEND_NAMED_FE(zx_node_s_wo_get,_wrap_zx_node_s_wo_get, NULL)
  ZEND_NAMED_FE(zx_node_s_ns_set,_wrap_zx_node_s_ns_set, NULL)
  ZEND_NAMED_FE(zx_node_s_ns_get,_wrap_zx_node_s_ns_get, NULL)
  ZEND_NAMED_FE(zx_node_s_tok_set,_wrap_zx_node_s_tok_set, NULL)
  ZEND_NAMED_FE(zx_node_s_tok_get,_wrap_zx_node_s_tok_get, NULL)
  ZEND_NAMED_FE(zx_node_s_err_set,_wrap_zx_node_s_err_set, NULL)
  ZEND_NAMED_FE(zx_node_s_err_get,_wrap_zx_node_s_err_get, NULL)
  ZEND_NAMED_FE(new_zx_node_s,_wrap_new_zx_node_s, NULL)
  ZEND_NAMED_FE(zx_elem_s_g_set,_wrap_zx_elem_s_g_set, NULL)
  ZEND_NAMED_FE(zx_elem_s_g_get,_wrap_zx_elem_s_g_get, NULL)
  ZEND_NAMED_FE(zx_elem_s_kids_set,_wrap_zx_elem_s_kids_set, NULL)
  ZEND_NAMED_FE(zx_elem_s_kids_get,_wrap_zx_elem_s_kids_get, NULL)
  ZEND_NAMED_FE(zx_elem_s_any_attr_set,_wrap_zx_elem_s_any_attr_set, NULL)
  ZEND_NAMED_FE(zx_elem_s_any_attr_get,_wrap_zx_elem_s_any_attr_get, NULL)
  ZEND_NAMED_FE(zx_elem_s_any_elem_set,_wrap_zx_elem_s_any_elem_set, NULL)
  ZEND_NAMED_FE(zx_elem_s_any_elem_get,_wrap_zx_elem_s_any_elem_get, NULL)
  ZEND_NAMED_FE(zx_elem_s_xmlns_set,_wrap_zx_elem_s_xmlns_set, NULL)
  ZEND_NAMED_FE(zx_elem_s_xmlns_get,_wrap_zx_elem_s_xmlns_get, NULL)
  ZEND_NAMED_FE(zx_elem_s_content_set,_wrap_zx_elem_s_content_set, NULL)
  ZEND_NAMED_FE(zx_elem_s_content_get,_wrap_zx_elem_s_content_get, NULL)
  ZEND_NAMED_FE(new_zx_elem_s,_wrap_new_zx_elem_s, NULL)
  ZEND_NAMED_FE(zx_new_simple_elem,_wrap_zx_new_simple_elem, NULL)
  ZEND_NAMED_FE(zx_ref_len_simple_elem,_wrap_zx_ref_len_simple_elem, NULL)
  ZEND_NAMED_FE(zx_ref_simple_elem,_wrap_zx_ref_simple_elem, NULL)
  ZEND_NAMED_FE(zx_dup_len_simple_elem,_wrap_zx_dup_len_simple_elem, NULL)
  ZEND_NAMED_FE(zx_dup_simple_elem,_wrap_zx_dup_simple_elem, NULL)
  ZEND_NAMED_FE(zx_str_g_set,_wrap_zx_str_g_set, NULL)
  ZEND_NAMED_FE(zx_str_g_get,_wrap_zx_str_g_get, NULL)
  ZEND_NAMED_FE(zx_str_len_set,_wrap_zx_str_len_set, NULL)
  ZEND_NAMED_FE(zx_str_len_get,_wrap_zx_str_len_get, NULL)
  ZEND_NAMED_FE(zx_str_s_set,_wrap_zx_str_s_set, NULL)
  ZEND_NAMED_FE(zx_str_s_get,_wrap_zx_str_s_get, NULL)
  ZEND_NAMED_FE(new_zx_str,_wrap_new_zx_str, NULL)
  ZEND_NAMED_FE(zx_ref_str,_wrap_zx_ref_str, NULL)
  ZEND_NAMED_FE(zx_ref_len_str,_wrap_zx_ref_len_str, NULL)
  ZEND_NAMED_FE(zx_new_len_str,_wrap_zx_new_len_str, NULL)
  ZEND_NAMED_FE(zx_dup_str,_wrap_zx_dup_str, NULL)
  ZEND_NAMED_FE(zx_dup_len_str,_wrap_zx_dup_len_str, NULL)
  ZEND_NAMED_FE(zx_alloc_sprintf,_wrap_zx_alloc_sprintf, NULL)
  ZEND_NAMED_FE(zx_strf,_wrap_zx_strf, NULL)
  ZEND_NAMED_FE(zx_str_free,_wrap_zx_str_free, NULL)
  ZEND_NAMED_FE(zx_str_to_c,_wrap_zx_str_to_c, NULL)
  ZEND_NAMED_FE(zx_str_conv,_wrap_zx_str_conv, NULL)
  ZEND_NAMED_FE(zx_str_ends_in,_wrap_zx_str_ends_in, NULL)
  ZEND_NAMED_FE(zx_any_elem_s_gg_set,_wrap_zx_any_elem_s_gg_set, NULL)
  ZEND_NAMED_FE(zx_any_elem_s_gg_get,_wrap_zx_any_elem_s_gg_get, NULL)
  ZEND_NAMED_FE(zx_any_elem_s_name_len_set,_wrap_zx_any_elem_s_name_len_set, NULL)
  ZEND_NAMED_FE(zx_any_elem_s_name_len_get,_wrap_zx_any_elem_s_name_len_get, NULL)
  ZEND_NAMED_FE(zx_any_elem_s_name_set,_wrap_zx_any_elem_s_name_set, NULL)
  ZEND_NAMED_FE(zx_any_elem_s_name_get,_wrap_zx_any_elem_s_name_get, NULL)
  ZEND_NAMED_FE(new_zx_any_elem_s,_wrap_new_zx_any_elem_s, NULL)
  ZEND_NAMED_FE(zx_any_attr_s_ss_set,_wrap_zx_any_attr_s_ss_set, NULL)
  ZEND_NAMED_FE(zx_any_attr_s_ss_get,_wrap_zx_any_attr_s_ss_get, NULL)
  ZEND_NAMED_FE(zx_any_attr_s_name_len_set,_wrap_zx_any_attr_s_name_len_set, NULL)
  ZEND_NAMED_FE(zx_any_attr_s_name_len_get,_wrap_zx_any_attr_s_name_len_get, NULL)
  ZEND_NAMED_FE(zx_any_attr_s_name_set,_wrap_zx_any_attr_s_name_set, NULL)
  ZEND_NAMED_FE(zx_any_attr_s_name_get,_wrap_zx_any_attr_s_name_get, NULL)
  ZEND_NAMED_FE(new_zx_any_attr_s,_wrap_new_zx_any_attr_s, NULL)
  ZEND_NAMED_FE(zx_memmem,_wrap_zx_memmem, NULL)
  ZEND_NAMED_FE(zx_alloc,_wrap_zx_alloc, NULL)
  ZEND_NAMED_FE(zx_zalloc,_wrap_zx_zalloc, NULL)
  ZEND_NAMED_FE(zx_free,_wrap_zx_free, NULL)
  ZEND_NAMED_FE(zx_dup_cstr,_wrap_zx_dup_cstr, NULL)
  ZEND_NAMED_FE(zx_reset_ctx,_wrap_zx_reset_ctx, NULL)
  ZEND_NAMED_FE(zx_init_ctx,_wrap_zx_init_ctx, NULL)
  ZEND_NAMED_FE(zx_tok_name_set,_wrap_zx_tok_name_set, NULL)
  ZEND_NAMED_FE(zx_tok_name_get,_wrap_zx_tok_name_get, NULL)
  ZEND_NAMED_FE(zx_tok_prefix_set,_wrap_zx_tok_prefix_set, NULL)
  ZEND_NAMED_FE(zx_tok_prefix_get,_wrap_zx_tok_prefix_get, NULL)
  ZEND_NAMED_FE(zx_tok_ns_set,_wrap_zx_tok_ns_set, NULL)
  ZEND_NAMED_FE(zx_tok_ns_get,_wrap_zx_tok_ns_get, NULL)
  ZEND_NAMED_FE(new_zx_tok,_wrap_new_zx_tok, NULL)
  ZEND_NAMED_FE(zx_date_time_to_secs,_wrap_zx_date_time_to_secs, NULL)
  ZEND_NAMED_FE(write2_or_append_lock_c_path,_wrap_write2_or_append_lock_c_path, NULL)
  ZEND_NAMED_FE(zx_report_openssl_error,_wrap_zx_report_openssl_error, NULL)
  ZEND_NAMED_FE(zx_fix_any_elem_dec,_wrap_zx_fix_any_elem_dec, NULL)
  ZEND_NAMED_FE(zx_locate_ns_by_prefix,_wrap_zx_locate_ns_by_prefix, NULL)
  ZEND_NAMED_FE(zx_is_ns_prefix,_wrap_zx_is_ns_prefix, NULL)
  ZEND_NAMED_FE(zx_prefix_seen,_wrap_zx_prefix_seen, NULL)
  ZEND_NAMED_FE(zx_prefix_seen_whine,_wrap_zx_prefix_seen_whine, NULL)
  ZEND_NAMED_FE(zx_scan_xmlns,_wrap_zx_scan_xmlns, NULL)
  ZEND_NAMED_FE(zx_pop_seen,_wrap_zx_pop_seen, NULL)
  ZEND_NAMED_FE(zx_raw_cipher,_wrap_zx_raw_cipher, NULL)
  ZEND_NAMED_FE(zx_rsa_pub_enc,_wrap_zx_rsa_pub_enc, NULL)
  ZEND_NAMED_FE(zx_rsa_pub_dec,_wrap_zx_rsa_pub_dec, NULL)
  ZEND_NAMED_FE(zx_rsa_priv_dec,_wrap_zx_rsa_priv_dec, NULL)
  ZEND_NAMED_FE(zx_rsa_priv_enc,_wrap_zx_rsa_priv_enc, NULL)
  ZEND_NAMED_FE(zx_get_rsa_pub_from_cert,_wrap_zx_get_rsa_pub_from_cert, NULL)
  ZEND_NAMED_FE(zx_rand,_wrap_zx_rand, NULL)
  ZEND_NAMED_FE(zx_tok_by_ns,_wrap_zx_tok_by_ns, NULL)
  ZEND_NAMED_FE(zx_len_xmlns_if_not_seen,_wrap_zx_len_xmlns_if_not_seen, NULL)
  ZEND_NAMED_FE(zx_enc_xmlns_if_not_seen,_wrap_zx_enc_xmlns_if_not_seen, NULL)
  ZEND_NAMED_FE(zx_add_xmlns_if_not_seen,_wrap_zx_add_xmlns_if_not_seen, NULL)
  ZEND_NAMED_FE(zx_enc_seen,_wrap_zx_enc_seen, NULL)
  ZEND_NAMED_FE(zx_len_so_common,_wrap_zx_len_so_common, NULL)
  ZEND_NAMED_FE(zx_len_wo_common,_wrap_zx_len_wo_common, NULL)
  ZEND_NAMED_FE(zx_enc_unknown_attrs,_wrap_zx_enc_unknown_attrs, NULL)
  ZEND_NAMED_FE(zx_enc_so_unknown_elems_and_content,_wrap_zx_enc_so_unknown_elems_and_content, NULL)
  ZEND_NAMED_FE(zx_easy_enc_common,_wrap_zx_easy_enc_common, NULL)
  ZEND_NAMED_FE(zx_attr_so_len,_wrap_zx_attr_so_len, NULL)
  ZEND_NAMED_FE(zx_attr_so_enc,_wrap_zx_attr_so_enc, NULL)
  ZEND_NAMED_FE(zx_attr_wo_len,_wrap_zx_attr_wo_len, NULL)
  ZEND_NAMED_FE(zx_attr_wo_enc,_wrap_zx_attr_wo_enc, NULL)
  ZEND_NAMED_FE(zx_free_attr,_wrap_zx_free_attr, NULL)
  ZEND_NAMED_FE(zx_free_elem_common,_wrap_zx_free_elem_common, NULL)
  ZEND_NAMED_FE(zx_free_simple_elems,_wrap_zx_free_simple_elems, NULL)
  ZEND_NAMED_FE(zx_prepare_dec_ctx,_wrap_zx_prepare_dec_ctx, NULL)
  ZEND_NAMED_FE(zx_scan_data,_wrap_zx_scan_data, NULL)
  ZEND_NAMED_FE(zx_scan_pi_or_comment,_wrap_zx_scan_pi_or_comment, NULL)
  ZEND_NAMED_FE(zx_dec_unknown_attr,_wrap_zx_dec_unknown_attr, NULL)
  ZEND_NAMED_FE(zx_dec_attr_val,_wrap_zx_dec_attr_val, NULL)
  ZEND_NAMED_FE(zx_xml_parse_err,_wrap_zx_xml_parse_err, NULL)
  ZEND_NAMED_FE(zx_len_inc_ns,_wrap_zx_len_inc_ns, NULL)
  ZEND_NAMED_FE(zx_add_inc_ns,_wrap_zx_add_inc_ns, NULL)
  ZEND_NAMED_FE(zx_enc_inc_ns,_wrap_zx_enc_inc_ns, NULL)
  ZEND_NAMED_FE(zxid_conf_magic_set,_wrap_zxid_conf_magic_set, NULL)
  ZEND_NAMED_FE(zxid_conf_magic_get,_wrap_zxid_conf_magic_get, NULL)
  ZEND_NAMED_FE(zxid_conf_ctx_set,_wrap_zxid_conf_ctx_set, NULL)
  ZEND_NAMED_FE(zxid_conf_ctx_get,_wrap_zxid_conf_ctx_get, NULL)
  ZEND_NAMED_FE(zxid_conf_cot_set,_wrap_zxid_conf_cot_set, NULL)
  ZEND_NAMED_FE(zxid_conf_cot_get,_wrap_zxid_conf_cot_get, NULL)
  ZEND_NAMED_FE(zxid_conf_path_supplied_set,_wrap_zxid_conf_path_supplied_set, NULL)
  ZEND_NAMED_FE(zxid_conf_path_supplied_get,_wrap_zxid_conf_path_supplied_get, NULL)
  ZEND_NAMED_FE(zxid_conf_path_len_set,_wrap_zxid_conf_path_len_set, NULL)
  ZEND_NAMED_FE(zxid_conf_path_len_get,_wrap_zxid_conf_path_len_get, NULL)
  ZEND_NAMED_FE(zxid_conf_path_set,_wrap_zxid_conf_path_set, NULL)
  ZEND_NAMED_FE(zxid_conf_path_get,_wrap_zxid_conf_path_get, NULL)
  ZEND_NAMED_FE(zxid_conf_url_set,_wrap_zxid_conf_url_set, NULL)
  ZEND_NAMED_FE(zxid_conf_url_get,_wrap_zxid_conf_url_get, NULL)
  ZEND_NAMED_FE(zxid_conf_non_standard_entityid_set,_wrap_zxid_conf_non_standard_entityid_set, NULL)
  ZEND_NAMED_FE(zxid_conf_non_standard_entityid_get,_wrap_zxid_conf_non_standard_entityid_get, NULL)
  ZEND_NAMED_FE(zxid_conf_redirect_hack_imposed_url_set,_wrap_zxid_conf_redirect_hack_imposed_url_set, NULL)
  ZEND_NAMED_FE(zxid_conf_redirect_hack_imposed_url_get,_wrap_zxid_conf_redirect_hack_imposed_url_get, NULL)
  ZEND_NAMED_FE(zxid_conf_redirect_hack_zxid_url_set,_wrap_zxid_conf_redirect_hack_zxid_url_set, NULL)
  ZEND_NAMED_FE(zxid_conf_redirect_hack_zxid_url_get,_wrap_zxid_conf_redirect_hack_zxid_url_get, NULL)
  ZEND_NAMED_FE(zxid_conf_redirect_hack_zxid_qs_set,_wrap_zxid_conf_redirect_hack_zxid_qs_set, NULL)
  ZEND_NAMED_FE(zxid_conf_redirect_hack_zxid_qs_get,_wrap_zxid_conf_redirect_hack_zxid_qs_get, NULL)
  ZEND_NAMED_FE(zxid_conf_cdc_url_set,_wrap_zxid_conf_cdc_url_set, NULL)
  ZEND_NAMED_FE(zxid_conf_cdc_url_get,_wrap_zxid_conf_cdc_url_get, NULL)
  ZEND_NAMED_FE(zxid_conf_cdc_choice_set,_wrap_zxid_conf_cdc_choice_set, NULL)
  ZEND_NAMED_FE(zxid_conf_cdc_choice_get,_wrap_zxid_conf_cdc_choice_get, NULL)
  ZEND_NAMED_FE(zxid_conf_md_fetch_set,_wrap_zxid_conf_md_fetch_set, NULL)
  ZEND_NAMED_FE(zxid_conf_md_fetch_get,_wrap_zxid_conf_md_fetch_get, NULL)
  ZEND_NAMED_FE(zxid_conf_md_populate_cache_set,_wrap_zxid_conf_md_populate_cache_set, NULL)
  ZEND_NAMED_FE(zxid_conf_md_populate_cache_get,_wrap_zxid_conf_md_populate_cache_get, NULL)
  ZEND_NAMED_FE(zxid_conf_md_cache_first_set,_wrap_zxid_conf_md_cache_first_set, NULL)
  ZEND_NAMED_FE(zxid_conf_md_cache_first_get,_wrap_zxid_conf_md_cache_first_get, NULL)
  ZEND_NAMED_FE(zxid_conf_md_cache_last_set,_wrap_zxid_conf_md_cache_last_set, NULL)
  ZEND_NAMED_FE(zxid_conf_md_cache_last_get,_wrap_zxid_conf_md_cache_last_get, NULL)
  ZEND_NAMED_FE(zxid_conf_auto_cert_set,_wrap_zxid_conf_auto_cert_set, NULL)
  ZEND_NAMED_FE(zxid_conf_auto_cert_get,_wrap_zxid_conf_auto_cert_get, NULL)
  ZEND_NAMED_FE(zxid_conf_user_local_set,_wrap_zxid_conf_user_local_set, NULL)
  ZEND_NAMED_FE(zxid_conf_user_local_get,_wrap_zxid_conf_user_local_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_ena_set,_wrap_zxid_conf_idp_ena_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_ena_get,_wrap_zxid_conf_idp_ena_get, NULL)
  ZEND_NAMED_FE(zxid_conf_pdp_ena_set,_wrap_zxid_conf_pdp_ena_set, NULL)
  ZEND_NAMED_FE(zxid_conf_pdp_ena_get,_wrap_zxid_conf_pdp_ena_get, NULL)
  ZEND_NAMED_FE(zxid_conf_want_authn_req_signed_set,_wrap_zxid_conf_want_authn_req_signed_set, NULL)
  ZEND_NAMED_FE(zxid_conf_want_authn_req_signed_get,_wrap_zxid_conf_want_authn_req_signed_get, NULL)
  ZEND_NAMED_FE(zxid_conf_authn_req_sign_set,_wrap_zxid_conf_authn_req_sign_set, NULL)
  ZEND_NAMED_FE(zxid_conf_authn_req_sign_get,_wrap_zxid_conf_authn_req_sign_get, NULL)
  ZEND_NAMED_FE(zxid_conf_want_sso_a7n_signed_set,_wrap_zxid_conf_want_sso_a7n_signed_set, NULL)
  ZEND_NAMED_FE(zxid_conf_want_sso_a7n_signed_get,_wrap_zxid_conf_want_sso_a7n_signed_get, NULL)
  ZEND_NAMED_FE(zxid_conf_sso_soap_sign_set,_wrap_zxid_conf_sso_soap_sign_set, NULL)
  ZEND_NAMED_FE(zxid_conf_sso_soap_sign_get,_wrap_zxid_conf_sso_soap_sign_get, NULL)
  ZEND_NAMED_FE(zxid_conf_sso_soap_resp_sign_set,_wrap_zxid_conf_sso_soap_resp_sign_set, NULL)
  ZEND_NAMED_FE(zxid_conf_sso_soap_resp_sign_get,_wrap_zxid_conf_sso_soap_resp_sign_get, NULL)
  ZEND_NAMED_FE(zxid_conf_sso_sign_set,_wrap_zxid_conf_sso_sign_set, NULL)
  ZEND_NAMED_FE(zxid_conf_sso_sign_get,_wrap_zxid_conf_sso_sign_get, NULL)
  ZEND_NAMED_FE(zxid_conf_nameid_enc_set,_wrap_zxid_conf_nameid_enc_set, NULL)
  ZEND_NAMED_FE(zxid_conf_nameid_enc_get,_wrap_zxid_conf_nameid_enc_get, NULL)
  ZEND_NAMED_FE(zxid_conf_post_a7n_enc_set,_wrap_zxid_conf_post_a7n_enc_set, NULL)
  ZEND_NAMED_FE(zxid_conf_post_a7n_enc_get,_wrap_zxid_conf_post_a7n_enc_get, NULL)
  ZEND_NAMED_FE(zxid_conf_affiliation_set,_wrap_zxid_conf_affiliation_set, NULL)
  ZEND_NAMED_FE(zxid_conf_affiliation_get,_wrap_zxid_conf_affiliation_get, NULL)
  ZEND_NAMED_FE(zxid_conf_nice_name_set,_wrap_zxid_conf_nice_name_set, NULL)
  ZEND_NAMED_FE(zxid_conf_nice_name_get,_wrap_zxid_conf_nice_name_get, NULL)
  ZEND_NAMED_FE(zxid_conf_ses_arch_dir_set,_wrap_zxid_conf_ses_arch_dir_set, NULL)
  ZEND_NAMED_FE(zxid_conf_ses_arch_dir_get,_wrap_zxid_conf_ses_arch_dir_get, NULL)
  ZEND_NAMED_FE(zxid_conf_ses_cookie_name_set,_wrap_zxid_conf_ses_cookie_name_set, NULL)
  ZEND_NAMED_FE(zxid_conf_ses_cookie_name_get,_wrap_zxid_conf_ses_cookie_name_get, NULL)
  ZEND_NAMED_FE(zxid_conf_ipport_set,_wrap_zxid_conf_ipport_set, NULL)
  ZEND_NAMED_FE(zxid_conf_ipport_get,_wrap_zxid_conf_ipport_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_err_set,_wrap_zxid_conf_log_err_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_err_get,_wrap_zxid_conf_log_err_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_act_set,_wrap_zxid_conf_log_act_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_act_get,_wrap_zxid_conf_log_act_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_issue_a7n_set,_wrap_zxid_conf_log_issue_a7n_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_issue_a7n_get,_wrap_zxid_conf_log_issue_a7n_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_issue_msg_set,_wrap_zxid_conf_log_issue_msg_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_issue_msg_get,_wrap_zxid_conf_log_issue_msg_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_rely_a7n_set,_wrap_zxid_conf_log_rely_a7n_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_rely_a7n_get,_wrap_zxid_conf_log_rely_a7n_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_rely_msg_set,_wrap_zxid_conf_log_rely_msg_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_rely_msg_get,_wrap_zxid_conf_log_rely_msg_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_err_in_act_set,_wrap_zxid_conf_log_err_in_act_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_err_in_act_get,_wrap_zxid_conf_log_err_in_act_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_act_in_err_set,_wrap_zxid_conf_log_act_in_err_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_act_in_err_get,_wrap_zxid_conf_log_act_in_err_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_sigfail_is_err_set,_wrap_zxid_conf_log_sigfail_is_err_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_sigfail_is_err_get,_wrap_zxid_conf_log_sigfail_is_err_get, NULL)
  ZEND_NAMED_FE(zxid_conf_log_level_set,_wrap_zxid_conf_log_level_set, NULL)
  ZEND_NAMED_FE(zxid_conf_log_level_get,_wrap_zxid_conf_log_level_get, NULL)
  ZEND_NAMED_FE(zxid_conf_sig_fatal_set,_wrap_zxid_conf_sig_fatal_set, NULL)
  ZEND_NAMED_FE(zxid_conf_sig_fatal_get,_wrap_zxid_conf_sig_fatal_get, NULL)
  ZEND_NAMED_FE(zxid_conf_nosig_fatal_set,_wrap_zxid_conf_nosig_fatal_set, NULL)
  ZEND_NAMED_FE(zxid_conf_nosig_fatal_get,_wrap_zxid_conf_nosig_fatal_get, NULL)
  ZEND_NAMED_FE(zxid_conf_msg_sig_ok_set,_wrap_zxid_conf_msg_sig_ok_set, NULL)
  ZEND_NAMED_FE(zxid_conf_msg_sig_ok_get,_wrap_zxid_conf_msg_sig_ok_get, NULL)
  ZEND_NAMED_FE(zxid_conf_timeout_fatal_set,_wrap_zxid_conf_timeout_fatal_set, NULL)
  ZEND_NAMED_FE(zxid_conf_timeout_fatal_get,_wrap_zxid_conf_timeout_fatal_get, NULL)
  ZEND_NAMED_FE(zxid_conf_audience_fatal_set,_wrap_zxid_conf_audience_fatal_set, NULL)
  ZEND_NAMED_FE(zxid_conf_audience_fatal_get,_wrap_zxid_conf_audience_fatal_get, NULL)
  ZEND_NAMED_FE(zxid_conf_dup_a7n_fatal_set,_wrap_zxid_conf_dup_a7n_fatal_set, NULL)
  ZEND_NAMED_FE(zxid_conf_dup_a7n_fatal_get,_wrap_zxid_conf_dup_a7n_fatal_get, NULL)
  ZEND_NAMED_FE(zxid_conf_dup_msg_fatal_set,_wrap_zxid_conf_dup_msg_fatal_set, NULL)
  ZEND_NAMED_FE(zxid_conf_dup_msg_fatal_get,_wrap_zxid_conf_dup_msg_fatal_get, NULL)
  ZEND_NAMED_FE(zxid_conf_redir_to_content_set,_wrap_zxid_conf_redir_to_content_set, NULL)
  ZEND_NAMED_FE(zxid_conf_redir_to_content_get,_wrap_zxid_conf_redir_to_content_get, NULL)
  ZEND_NAMED_FE(zxid_conf_remote_user_ena_set,_wrap_zxid_conf_remote_user_ena_set, NULL)
  ZEND_NAMED_FE(zxid_conf_remote_user_ena_get,_wrap_zxid_conf_remote_user_ena_get, NULL)
  ZEND_NAMED_FE(zxid_conf_anon_ok_set,_wrap_zxid_conf_anon_ok_set, NULL)
  ZEND_NAMED_FE(zxid_conf_anon_ok_get,_wrap_zxid_conf_anon_ok_get, NULL)
  ZEND_NAMED_FE(zxid_conf_required_authnctx_set,_wrap_zxid_conf_required_authnctx_set, NULL)
  ZEND_NAMED_FE(zxid_conf_required_authnctx_get,_wrap_zxid_conf_required_authnctx_get, NULL)
  ZEND_NAMED_FE(zxid_conf_issue_authnctx_pw_set,_wrap_zxid_conf_issue_authnctx_pw_set, NULL)
  ZEND_NAMED_FE(zxid_conf_issue_authnctx_pw_get,_wrap_zxid_conf_issue_authnctx_pw_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_pref_acs_binding_set,_wrap_zxid_conf_idp_pref_acs_binding_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_pref_acs_binding_get,_wrap_zxid_conf_idp_pref_acs_binding_get, NULL)
  ZEND_NAMED_FE(zxid_conf_before_slop_set,_wrap_zxid_conf_before_slop_set, NULL)
  ZEND_NAMED_FE(zxid_conf_before_slop_get,_wrap_zxid_conf_before_slop_get, NULL)
  ZEND_NAMED_FE(zxid_conf_after_slop_set,_wrap_zxid_conf_after_slop_set, NULL)
  ZEND_NAMED_FE(zxid_conf_after_slop_get,_wrap_zxid_conf_after_slop_get, NULL)
  ZEND_NAMED_FE(zxid_conf_timeskew_set,_wrap_zxid_conf_timeskew_set, NULL)
  ZEND_NAMED_FE(zxid_conf_timeskew_get,_wrap_zxid_conf_timeskew_get, NULL)
  ZEND_NAMED_FE(zxid_conf_a7nttl_set,_wrap_zxid_conf_a7nttl_set, NULL)
  ZEND_NAMED_FE(zxid_conf_a7nttl_get,_wrap_zxid_conf_a7nttl_get, NULL)
  ZEND_NAMED_FE(zxid_conf_pdp_url_set,_wrap_zxid_conf_pdp_url_set, NULL)
  ZEND_NAMED_FE(zxid_conf_pdp_url_get,_wrap_zxid_conf_pdp_url_get, NULL)
  ZEND_NAMED_FE(zxid_conf_need_set,_wrap_zxid_conf_need_set, NULL)
  ZEND_NAMED_FE(zxid_conf_need_get,_wrap_zxid_conf_need_get, NULL)
  ZEND_NAMED_FE(zxid_conf_want_set,_wrap_zxid_conf_want_set, NULL)
  ZEND_NAMED_FE(zxid_conf_want_get,_wrap_zxid_conf_want_get, NULL)
  ZEND_NAMED_FE(zxid_conf_attrsrc_set,_wrap_zxid_conf_attrsrc_set, NULL)
  ZEND_NAMED_FE(zxid_conf_attrsrc_get,_wrap_zxid_conf_attrsrc_get, NULL)
  ZEND_NAMED_FE(zxid_conf_inmap_set,_wrap_zxid_conf_inmap_set, NULL)
  ZEND_NAMED_FE(zxid_conf_inmap_get,_wrap_zxid_conf_inmap_get, NULL)
  ZEND_NAMED_FE(zxid_conf_outmap_set,_wrap_zxid_conf_outmap_set, NULL)
  ZEND_NAMED_FE(zxid_conf_outmap_get,_wrap_zxid_conf_outmap_get, NULL)
  ZEND_NAMED_FE(zxid_conf_pepmap_set,_wrap_zxid_conf_pepmap_set, NULL)
  ZEND_NAMED_FE(zxid_conf_pepmap_get,_wrap_zxid_conf_pepmap_get, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_role_permit_set,_wrap_zxid_conf_localpdp_role_permit_set, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_role_permit_get,_wrap_zxid_conf_localpdp_role_permit_get, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_role_deny_set,_wrap_zxid_conf_localpdp_role_deny_set, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_role_deny_get,_wrap_zxid_conf_localpdp_role_deny_get, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_idpnid_permit_set,_wrap_zxid_conf_localpdp_idpnid_permit_set, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_idpnid_permit_get,_wrap_zxid_conf_localpdp_idpnid_permit_get, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_idpnid_deny_set,_wrap_zxid_conf_localpdp_idpnid_deny_set, NULL)
  ZEND_NAMED_FE(zxid_conf_localpdp_idpnid_deny_get,_wrap_zxid_conf_localpdp_idpnid_deny_get, NULL)
  ZEND_NAMED_FE(zxid_conf_max_soap_retry_set,_wrap_zxid_conf_max_soap_retry_set, NULL)
  ZEND_NAMED_FE(zxid_conf_max_soap_retry_get,_wrap_zxid_conf_max_soap_retry_get, NULL)
  ZEND_NAMED_FE(zxid_conf_defaultqs_set,_wrap_zxid_conf_defaultqs_set, NULL)
  ZEND_NAMED_FE(zxid_conf_defaultqs_get,_wrap_zxid_conf_defaultqs_get, NULL)
  ZEND_NAMED_FE(zxid_conf_mod_saml_attr_prefix_set,_wrap_zxid_conf_mod_saml_attr_prefix_set, NULL)
  ZEND_NAMED_FE(zxid_conf_mod_saml_attr_prefix_get,_wrap_zxid_conf_mod_saml_attr_prefix_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_page_set,_wrap_zxid_conf_idp_sel_page_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_page_get,_wrap_zxid_conf_idp_sel_page_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_start_set,_wrap_zxid_conf_idp_sel_start_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_start_get,_wrap_zxid_conf_idp_sel_start_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_new_idp_set,_wrap_zxid_conf_idp_sel_new_idp_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_new_idp_get,_wrap_zxid_conf_idp_sel_new_idp_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_our_eid_set,_wrap_zxid_conf_idp_sel_our_eid_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_our_eid_get,_wrap_zxid_conf_idp_sel_our_eid_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_tech_user_set,_wrap_zxid_conf_idp_sel_tech_user_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_tech_user_get,_wrap_zxid_conf_idp_sel_tech_user_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_tech_site_set,_wrap_zxid_conf_idp_sel_tech_site_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_tech_site_get,_wrap_zxid_conf_idp_sel_tech_site_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_footer_set,_wrap_zxid_conf_idp_sel_footer_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_footer_get,_wrap_zxid_conf_idp_sel_footer_get, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_end_set,_wrap_zxid_conf_idp_sel_end_set, NULL)
  ZEND_NAMED_FE(zxid_conf_idp_sel_end_get,_wrap_zxid_conf_idp_sel_end_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_page_set,_wrap_zxid_conf_an_page_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_page_get,_wrap_zxid_conf_an_page_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_start_set,_wrap_zxid_conf_an_start_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_start_get,_wrap_zxid_conf_an_start_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_our_eid_set,_wrap_zxid_conf_an_our_eid_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_our_eid_get,_wrap_zxid_conf_an_our_eid_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_tech_user_set,_wrap_zxid_conf_an_tech_user_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_tech_user_get,_wrap_zxid_conf_an_tech_user_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_tech_site_set,_wrap_zxid_conf_an_tech_site_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_tech_site_get,_wrap_zxid_conf_an_tech_site_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_footer_set,_wrap_zxid_conf_an_footer_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_footer_get,_wrap_zxid_conf_an_footer_get, NULL)
  ZEND_NAMED_FE(zxid_conf_an_end_set,_wrap_zxid_conf_an_end_set, NULL)
  ZEND_NAMED_FE(zxid_conf_an_end_get,_wrap_zxid_conf_an_end_get, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_start_set,_wrap_zxid_conf_mgmt_start_set, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_start_get,_wrap_zxid_conf_mgmt_start_get, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_logout_set,_wrap_zxid_conf_mgmt_logout_set, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_logout_get,_wrap_zxid_conf_mgmt_logout_get, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_defed_set,_wrap_zxid_conf_mgmt_defed_set, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_defed_get,_wrap_zxid_conf_mgmt_defed_get, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_footer_set,_wrap_zxid_conf_mgmt_footer_set, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_footer_get,_wrap_zxid_conf_mgmt_footer_get, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_end_set,_wrap_zxid_conf_mgmt_end_set, NULL)
  ZEND_NAMED_FE(zxid_conf_mgmt_end_get,_wrap_zxid_conf_mgmt_end_get, NULL)
  ZEND_NAMED_FE(zxid_conf_dbg_set,_wrap_zxid_conf_dbg_set, NULL)
  ZEND_NAMED_FE(zxid_conf_dbg_get,_wrap_zxid_conf_dbg_get, NULL)
  ZEND_NAMED_FE(new_zxid_conf,_wrap_new_zxid_conf, NULL)
  ZEND_NAMED_FE(zxid_cgi_magic_set,_wrap_zxid_cgi_magic_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_magic_get,_wrap_zxid_cgi_magic_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_op_set,_wrap_zxid_cgi_op_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_op_get,_wrap_zxid_cgi_op_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_pr_ix_set,_wrap_zxid_cgi_pr_ix_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_pr_ix_get,_wrap_zxid_cgi_pr_ix_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_allow_create_set,_wrap_zxid_cgi_allow_create_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_allow_create_get,_wrap_zxid_cgi_allow_create_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_ispassive_set,_wrap_zxid_cgi_ispassive_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_ispassive_get,_wrap_zxid_cgi_ispassive_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_force_authn_set,_wrap_zxid_cgi_force_authn_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_force_authn_get,_wrap_zxid_cgi_force_authn_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_enc_hint_set,_wrap_zxid_cgi_enc_hint_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_enc_hint_get,_wrap_zxid_cgi_enc_hint_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_sid_set,_wrap_zxid_cgi_sid_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_sid_get,_wrap_zxid_cgi_sid_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_nid_set,_wrap_zxid_cgi_nid_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_nid_get,_wrap_zxid_cgi_nid_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_uid_set,_wrap_zxid_cgi_uid_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_uid_get,_wrap_zxid_cgi_uid_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_pw_set,_wrap_zxid_cgi_pw_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_pw_get,_wrap_zxid_cgi_pw_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_ssoreq_set,_wrap_zxid_cgi_ssoreq_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_ssoreq_get,_wrap_zxid_cgi_ssoreq_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_cdc_set,_wrap_zxid_cgi_cdc_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_cdc_get,_wrap_zxid_cgi_cdc_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_eid_set,_wrap_zxid_cgi_eid_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_eid_get,_wrap_zxid_cgi_eid_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_nid_fmt_set,_wrap_zxid_cgi_nid_fmt_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_nid_fmt_get,_wrap_zxid_cgi_nid_fmt_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_affil_set,_wrap_zxid_cgi_affil_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_affil_get,_wrap_zxid_cgi_affil_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_consent_set,_wrap_zxid_cgi_consent_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_consent_get,_wrap_zxid_cgi_consent_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_matching_rule_set,_wrap_zxid_cgi_matching_rule_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_matching_rule_get,_wrap_zxid_cgi_matching_rule_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_authn_ctx_set,_wrap_zxid_cgi_authn_ctx_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_authn_ctx_get,_wrap_zxid_cgi_authn_ctx_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_pxy_count_set,_wrap_zxid_cgi_pxy_count_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_pxy_count_get,_wrap_zxid_cgi_pxy_count_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_get_complete_set,_wrap_zxid_cgi_get_complete_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_get_complete_get,_wrap_zxid_cgi_get_complete_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_idppxylist_set,_wrap_zxid_cgi_idppxylist_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_idppxylist_get,_wrap_zxid_cgi_idppxylist_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_rs_set,_wrap_zxid_cgi_rs_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_rs_get,_wrap_zxid_cgi_rs_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_newnym_set,_wrap_zxid_cgi_newnym_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_newnym_get,_wrap_zxid_cgi_newnym_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_saml_art_set,_wrap_zxid_cgi_saml_art_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_saml_art_get,_wrap_zxid_cgi_saml_art_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_saml_resp_set,_wrap_zxid_cgi_saml_resp_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_saml_resp_get,_wrap_zxid_cgi_saml_resp_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_saml_req_set,_wrap_zxid_cgi_saml_req_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_saml_req_get,_wrap_zxid_cgi_saml_req_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_sigalg_set,_wrap_zxid_cgi_sigalg_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_sigalg_get,_wrap_zxid_cgi_sigalg_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_sig_set,_wrap_zxid_cgi_sig_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_sig_get,_wrap_zxid_cgi_sig_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_sigval_set,_wrap_zxid_cgi_sigval_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_sigval_get,_wrap_zxid_cgi_sigval_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_sigmsg_set,_wrap_zxid_cgi_sigmsg_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_sigmsg_get,_wrap_zxid_cgi_sigmsg_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_err_set,_wrap_zxid_cgi_err_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_err_get,_wrap_zxid_cgi_err_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_msg_set,_wrap_zxid_cgi_msg_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_msg_get,_wrap_zxid_cgi_msg_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_dbg_set,_wrap_zxid_cgi_dbg_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_dbg_get,_wrap_zxid_cgi_dbg_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_zxapp_set,_wrap_zxid_cgi_zxapp_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_zxapp_get,_wrap_zxid_cgi_zxapp_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_zxrfr_set,_wrap_zxid_cgi_zxrfr_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_zxrfr_get,_wrap_zxid_cgi_zxrfr_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_ok_set,_wrap_zxid_cgi_ok_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_ok_get,_wrap_zxid_cgi_ok_get, NULL)
  ZEND_NAMED_FE(zxid_cgi_idp_list_set,_wrap_zxid_cgi_idp_list_set, NULL)
  ZEND_NAMED_FE(zxid_cgi_idp_list_get,_wrap_zxid_cgi_idp_list_get, NULL)
  ZEND_NAMED_FE(new_zxid_cgi,_wrap_new_zxid_cgi, NULL)
  ZEND_NAMED_FE(zxid_ses_magic_set,_wrap_zxid_ses_magic_set, NULL)
  ZEND_NAMED_FE(zxid_ses_magic_get,_wrap_zxid_ses_magic_get, NULL)
  ZEND_NAMED_FE(zxid_ses_sid_set,_wrap_zxid_ses_sid_set, NULL)
  ZEND_NAMED_FE(zxid_ses_sid_get,_wrap_zxid_ses_sid_get, NULL)
  ZEND_NAMED_FE(zxid_ses_uid_set,_wrap_zxid_ses_uid_set, NULL)
  ZEND_NAMED_FE(zxid_ses_uid_get,_wrap_zxid_ses_uid_get, NULL)
  ZEND_NAMED_FE(zxid_ses_nid_set,_wrap_zxid_ses_nid_set, NULL)
  ZEND_NAMED_FE(zxid_ses_nid_get,_wrap_zxid_ses_nid_get, NULL)
  ZEND_NAMED_FE(zxid_ses_sesix_set,_wrap_zxid_ses_sesix_set, NULL)
  ZEND_NAMED_FE(zxid_ses_sesix_get,_wrap_zxid_ses_sesix_get, NULL)
  ZEND_NAMED_FE(zxid_ses_an_ctx_set,_wrap_zxid_ses_an_ctx_set, NULL)
  ZEND_NAMED_FE(zxid_ses_an_ctx_get,_wrap_zxid_ses_an_ctx_get, NULL)
  ZEND_NAMED_FE(zxid_ses_nidfmt_set,_wrap_zxid_ses_nidfmt_set, NULL)
  ZEND_NAMED_FE(zxid_ses_nidfmt_get,_wrap_zxid_ses_nidfmt_get, NULL)
  ZEND_NAMED_FE(zxid_ses_sigres_set,_wrap_zxid_ses_sigres_set, NULL)
  ZEND_NAMED_FE(zxid_ses_sigres_get,_wrap_zxid_ses_sigres_get, NULL)
  ZEND_NAMED_FE(zxid_ses_pad2_set,_wrap_zxid_ses_pad2_set, NULL)
  ZEND_NAMED_FE(zxid_ses_pad2_get,_wrap_zxid_ses_pad2_get, NULL)
  ZEND_NAMED_FE(zxid_ses_pad3_set,_wrap_zxid_ses_pad3_set, NULL)
  ZEND_NAMED_FE(zxid_ses_pad3_get,_wrap_zxid_ses_pad3_get, NULL)
  ZEND_NAMED_FE(zxid_ses_sso_a7n_path_set,_wrap_zxid_ses_sso_a7n_path_set, NULL)
  ZEND_NAMED_FE(zxid_ses_sso_a7n_path_get,_wrap_zxid_ses_sso_a7n_path_get, NULL)
  ZEND_NAMED_FE(zxid_ses_setcookie_set,_wrap_zxid_ses_setcookie_set, NULL)
  ZEND_NAMED_FE(zxid_ses_setcookie_get,_wrap_zxid_ses_setcookie_get, NULL)
  ZEND_NAMED_FE(zxid_ses_cookie_set,_wrap_zxid_ses_cookie_set, NULL)
  ZEND_NAMED_FE(zxid_ses_cookie_get,_wrap_zxid_ses_cookie_get, NULL)
  ZEND_NAMED_FE(zxid_ses_rs_set,_wrap_zxid_ses_rs_set, NULL)
  ZEND_NAMED_FE(zxid_ses_rs_get,_wrap_zxid_ses_rs_get, NULL)
  ZEND_NAMED_FE(zxid_ses_nameid_set,_wrap_zxid_ses_nameid_set, NULL)
  ZEND_NAMED_FE(zxid_ses_nameid_get,_wrap_zxid_ses_nameid_get, NULL)
  ZEND_NAMED_FE(zxid_ses_a7n_set,_wrap_zxid_ses_a7n_set, NULL)
  ZEND_NAMED_FE(zxid_ses_a7n_get,_wrap_zxid_ses_a7n_get, NULL)
  ZEND_NAMED_FE(zxid_ses_a7n11_set,_wrap_zxid_ses_a7n11_set, NULL)
  ZEND_NAMED_FE(zxid_ses_a7n11_get,_wrap_zxid_ses_a7n11_get, NULL)
  ZEND_NAMED_FE(zxid_ses_a7n12_set,_wrap_zxid_ses_a7n12_set, NULL)
  ZEND_NAMED_FE(zxid_ses_a7n12_get,_wrap_zxid_ses_a7n12_get, NULL)
  ZEND_NAMED_FE(zxid_ses_sesbuf_set,_wrap_zxid_ses_sesbuf_set, NULL)
  ZEND_NAMED_FE(zxid_ses_sesbuf_get,_wrap_zxid_ses_sesbuf_get, NULL)
  ZEND_NAMED_FE(zxid_ses_sso_a7n_buf_set,_wrap_zxid_ses_sso_a7n_buf_set, NULL)
  ZEND_NAMED_FE(zxid_ses_sso_a7n_buf_get,_wrap_zxid_ses_sso_a7n_buf_get, NULL)
  ZEND_NAMED_FE(zxid_ses_at_set,_wrap_zxid_ses_at_set, NULL)
  ZEND_NAMED_FE(zxid_ses_at_get,_wrap_zxid_ses_at_get, NULL)
  ZEND_NAMED_FE(new_zxid_ses,_wrap_new_zxid_ses, NULL)
  ZEND_NAMED_FE(zxid_attr_n_set,_wrap_zxid_attr_n_set, NULL)
  ZEND_NAMED_FE(zxid_attr_n_get,_wrap_zxid_attr_n_get, NULL)
  ZEND_NAMED_FE(zxid_attr_nv_set,_wrap_zxid_attr_nv_set, NULL)
  ZEND_NAMED_FE(zxid_attr_nv_get,_wrap_zxid_attr_nv_get, NULL)
  ZEND_NAMED_FE(zxid_attr_name_set,_wrap_zxid_attr_name_set, NULL)
  ZEND_NAMED_FE(zxid_attr_name_get,_wrap_zxid_attr_name_get, NULL)
  ZEND_NAMED_FE(zxid_attr_val_set,_wrap_zxid_attr_val_set, NULL)
  ZEND_NAMED_FE(zxid_attr_val_get,_wrap_zxid_attr_val_get, NULL)
  ZEND_NAMED_FE(zxid_attr_map_val_set,_wrap_zxid_attr_map_val_set, NULL)
  ZEND_NAMED_FE(zxid_attr_map_val_get,_wrap_zxid_attr_map_val_get, NULL)
  ZEND_NAMED_FE(zxid_attr_orig_set,_wrap_zxid_attr_orig_set, NULL)
  ZEND_NAMED_FE(zxid_attr_orig_get,_wrap_zxid_attr_orig_get, NULL)
  ZEND_NAMED_FE(zxid_attr_issuer_set,_wrap_zxid_attr_issuer_set, NULL)
  ZEND_NAMED_FE(zxid_attr_issuer_get,_wrap_zxid_attr_issuer_get, NULL)
  ZEND_NAMED_FE(new_zxid_attr,_wrap_new_zxid_attr, NULL)
  ZEND_NAMED_FE(zxid_need_n_set,_wrap_zxid_need_n_set, NULL)
  ZEND_NAMED_FE(zxid_need_n_get,_wrap_zxid_need_n_get, NULL)
  ZEND_NAMED_FE(zxid_need_at_set,_wrap_zxid_need_at_set, NULL)
  ZEND_NAMED_FE(zxid_need_at_get,_wrap_zxid_need_at_get, NULL)
  ZEND_NAMED_FE(zxid_need_usage_set,_wrap_zxid_need_usage_set, NULL)
  ZEND_NAMED_FE(zxid_need_usage_get,_wrap_zxid_need_usage_get, NULL)
  ZEND_NAMED_FE(zxid_need_retent_set,_wrap_zxid_need_retent_set, NULL)
  ZEND_NAMED_FE(zxid_need_retent_get,_wrap_zxid_need_retent_get, NULL)
  ZEND_NAMED_FE(zxid_need_oblig_set,_wrap_zxid_need_oblig_set, NULL)
  ZEND_NAMED_FE(zxid_need_oblig_get,_wrap_zxid_need_oblig_get, NULL)
  ZEND_NAMED_FE(zxid_need_ext_set,_wrap_zxid_need_ext_set, NULL)
  ZEND_NAMED_FE(zxid_need_ext_get,_wrap_zxid_need_ext_get, NULL)
  ZEND_NAMED_FE(new_zxid_need,_wrap_new_zxid_need, NULL)
  ZEND_NAMED_FE(zxid_map_n_set,_wrap_zxid_map_n_set, NULL)
  ZEND_NAMED_FE(zxid_map_n_get,_wrap_zxid_map_n_get, NULL)
  ZEND_NAMED_FE(zxid_map_rule_set,_wrap_zxid_map_rule_set, NULL)
  ZEND_NAMED_FE(zxid_map_rule_get,_wrap_zxid_map_rule_get, NULL)
  ZEND_NAMED_FE(zxid_map_ns_set,_wrap_zxid_map_ns_set, NULL)
  ZEND_NAMED_FE(zxid_map_ns_get,_wrap_zxid_map_ns_get, NULL)
  ZEND_NAMED_FE(zxid_map_src_set,_wrap_zxid_map_src_set, NULL)
  ZEND_NAMED_FE(zxid_map_src_get,_wrap_zxid_map_src_get, NULL)
  ZEND_NAMED_FE(zxid_map_dst_set,_wrap_zxid_map_dst_set, NULL)
  ZEND_NAMED_FE(zxid_map_dst_get,_wrap_zxid_map_dst_get, NULL)
  ZEND_NAMED_FE(zxid_map_ext_set,_wrap_zxid_map_ext_set, NULL)
  ZEND_NAMED_FE(zxid_map_ext_get,_wrap_zxid_map_ext_get, NULL)
  ZEND_NAMED_FE(new_zxid_map,_wrap_new_zxid_map, NULL)
  ZEND_NAMED_FE(zxid_cstr_list_n_set,_wrap_zxid_cstr_list_n_set, NULL)
  ZEND_NAMED_FE(zxid_cstr_list_n_get,_wrap_zxid_cstr_list_n_get, NULL)
  ZEND_NAMED_FE(zxid_cstr_list_s_set,_wrap_zxid_cstr_list_s_set, NULL)
  ZEND_NAMED_FE(zxid_cstr_list_s_get,_wrap_zxid_cstr_list_s_get, NULL)
  ZEND_NAMED_FE(new_zxid_cstr_list,_wrap_new_zxid_cstr_list, NULL)
  ZEND_NAMED_FE(zxid_atsrc_n_set,_wrap_zxid_atsrc_n_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_n_get,_wrap_zxid_atsrc_n_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_at_set,_wrap_zxid_atsrc_at_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_at_get,_wrap_zxid_atsrc_at_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_ns_set,_wrap_zxid_atsrc_ns_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_ns_get,_wrap_zxid_atsrc_ns_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_weight_set,_wrap_zxid_atsrc_weight_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_weight_get,_wrap_zxid_atsrc_weight_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_url_set,_wrap_zxid_atsrc_url_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_url_get,_wrap_zxid_atsrc_url_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_aapml_set,_wrap_zxid_atsrc_aapml_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_aapml_get,_wrap_zxid_atsrc_aapml_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_otherlim_set,_wrap_zxid_atsrc_otherlim_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_otherlim_get,_wrap_zxid_atsrc_otherlim_get, NULL)
  ZEND_NAMED_FE(zxid_atsrc_ext_set,_wrap_zxid_atsrc_ext_set, NULL)
  ZEND_NAMED_FE(zxid_atsrc_ext_get,_wrap_zxid_atsrc_ext_get, NULL)
  ZEND_NAMED_FE(new_zxid_atsrc,_wrap_new_zxid_atsrc, NULL)
  ZEND_NAMED_FE(zxid_entity_n_set,_wrap_zxid_entity_n_set, NULL)
  ZEND_NAMED_FE(zxid_entity_n_get,_wrap_zxid_entity_n_get, NULL)
  ZEND_NAMED_FE(zxid_entity_n_cdc_set,_wrap_zxid_entity_n_cdc_set, NULL)
  ZEND_NAMED_FE(zxid_entity_n_cdc_get,_wrap_zxid_entity_n_cdc_get, NULL)
  ZEND_NAMED_FE(zxid_entity_eid_len_set,_wrap_zxid_entity_eid_len_set, NULL)
  ZEND_NAMED_FE(zxid_entity_eid_len_get,_wrap_zxid_entity_eid_len_get, NULL)
  ZEND_NAMED_FE(zxid_entity_eid_set,_wrap_zxid_entity_eid_set, NULL)
  ZEND_NAMED_FE(zxid_entity_eid_get,_wrap_zxid_entity_eid_get, NULL)
  ZEND_NAMED_FE(zxid_entity_sha1_name_set,_wrap_zxid_entity_sha1_name_set, NULL)
  ZEND_NAMED_FE(zxid_entity_sha1_name_get,_wrap_zxid_entity_sha1_name_get, NULL)
  ZEND_NAMED_FE(zxid_entity_tls_cert_set,_wrap_zxid_entity_tls_cert_set, NULL)
  ZEND_NAMED_FE(zxid_entity_tls_cert_get,_wrap_zxid_entity_tls_cert_get, NULL)
  ZEND_NAMED_FE(zxid_entity_sign_cert_set,_wrap_zxid_entity_sign_cert_set, NULL)
  ZEND_NAMED_FE(zxid_entity_sign_cert_get,_wrap_zxid_entity_sign_cert_get, NULL)
  ZEND_NAMED_FE(zxid_entity_enc_cert_set,_wrap_zxid_entity_enc_cert_set, NULL)
  ZEND_NAMED_FE(zxid_entity_enc_cert_get,_wrap_zxid_entity_enc_cert_get, NULL)
  ZEND_NAMED_FE(zxid_entity_ed_set,_wrap_zxid_entity_ed_set, NULL)
  ZEND_NAMED_FE(zxid_entity_ed_get,_wrap_zxid_entity_ed_get, NULL)
  ZEND_NAMED_FE(new_zxid_entity,_wrap_new_zxid_entity, NULL)
  ZEND_NAMED_FE(zxid_simple,_wrap_zxid_simple, NULL)
  ZEND_NAMED_FE(zxid_idp_list,_wrap_zxid_idp_list, NULL)
  ZEND_NAMED_FE(zxid_idp_select,_wrap_zxid_idp_select, NULL)
  ZEND_NAMED_FE(zxid_fed_mgmt,_wrap_zxid_fed_mgmt, NULL)
  ZEND_NAMED_FE(zxid_new_conf_to_cf,_wrap_zxid_new_conf_to_cf, NULL)
  ZEND_NAMED_FE(zxid_simple_cf,_wrap_zxid_simple_cf, NULL)
  ZEND_NAMED_FE(zxid_idp_list_cf,_wrap_zxid_idp_list_cf, NULL)
  ZEND_NAMED_FE(zxid_idp_select_cf,_wrap_zxid_idp_select_cf, NULL)
  ZEND_NAMED_FE(zxid_fed_mgmt_cf,_wrap_zxid_fed_mgmt_cf, NULL)
  ZEND_NAMED_FE(zxid_conf_to_cf_len,_wrap_zxid_conf_to_cf_len, NULL)
  ZEND_NAMED_FE(zxid_simple_len,_wrap_zxid_simple_len, NULL)
  ZEND_NAMED_FE(zxid_idp_list_len,_wrap_zxid_idp_list_len, NULL)
  ZEND_NAMED_FE(zxid_idp_select_len,_wrap_zxid_idp_select_len, NULL)
  ZEND_NAMED_FE(zxid_fed_mgmt_len,_wrap_zxid_fed_mgmt_len, NULL)
  ZEND_NAMED_FE(zxid_idp_select_zxstr_cf,_wrap_zxid_idp_select_zxstr_cf, NULL)
  ZEND_NAMED_FE(zxid_simple_ab_pep,_wrap_zxid_simple_ab_pep, NULL)
  ZEND_NAMED_FE(zxid_simple_ses_active_cf,_wrap_zxid_simple_ses_active_cf, NULL)
  ZEND_NAMED_FE(zxid_simple_no_ses_cf,_wrap_zxid_simple_no_ses_cf, NULL)
  ZEND_NAMED_FE(zxsig_ref_sref_set,_wrap_zxsig_ref_sref_set, NULL)
  ZEND_NAMED_FE(zxsig_ref_sref_get,_wrap_zxsig_ref_sref_get, NULL)
  ZEND_NAMED_FE(zxsig_ref_blob_set,_wrap_zxsig_ref_blob_set, NULL)
  ZEND_NAMED_FE(zxsig_ref_blob_get,_wrap_zxsig_ref_blob_get, NULL)
  ZEND_NAMED_FE(zxsig_ref_id_set,_wrap_zxsig_ref_id_set, NULL)
  ZEND_NAMED_FE(zxsig_ref_id_get,_wrap_zxsig_ref_id_get, NULL)
  ZEND_NAMED_FE(zxsig_ref_canon_set,_wrap_zxsig_ref_canon_set, NULL)
  ZEND_NAMED_FE(zxsig_ref_canon_get,_wrap_zxsig_ref_canon_get, NULL)
  ZEND_NAMED_FE(new_zxsig_ref,_wrap_new_zxsig_ref, NULL)
  ZEND_NAMED_FE(zxsig_sign,_wrap_zxsig_sign, NULL)
  ZEND_NAMED_FE(zxsig_validate,_wrap_zxsig_validate, NULL)
  ZEND_NAMED_FE(zxsig_data_rsa_sha1,_wrap_zxsig_data_rsa_sha1, NULL)
  ZEND_NAMED_FE(zxsig_verify_data_rsa_sha1,_wrap_zxsig_verify_data_rsa_sha1, NULL)
  ZEND_NAMED_FE(zxenc_symkey_dec,_wrap_zxenc_symkey_dec, NULL)
  ZEND_NAMED_FE(zxenc_privkey_dec,_wrap_zxenc_privkey_dec, NULL)
  ZEND_NAMED_FE(zxenc_symkey_enc,_wrap_zxenc_symkey_enc, NULL)
  ZEND_NAMED_FE(zxenc_pubkey_enc,_wrap_zxenc_pubkey_enc, NULL)
  ZEND_NAMED_FE(zxlog_write_line,_wrap_zxlog_write_line, NULL)
  ZEND_NAMED_FE(zxlog_path,_wrap_zxlog_path, NULL)
  ZEND_NAMED_FE(zxlog_dup_check,_wrap_zxlog_dup_check, NULL)
  ZEND_NAMED_FE(zxlog_blob,_wrap_zxlog_blob, NULL)
  ZEND_NAMED_FE(zxlog,_wrap_zxlog, NULL)
  ZEND_NAMED_FE(zxid_get_ent_from_file,_wrap_zxid_get_ent_from_file, NULL)
  ZEND_NAMED_FE(zxid_get_ent_from_cache,_wrap_zxid_get_ent_from_cache, NULL)
  ZEND_NAMED_FE(zxid_write_ent_to_cache,_wrap_zxid_write_ent_to_cache, NULL)
  ZEND_NAMED_FE(zxid_parse_meta,_wrap_zxid_parse_meta, NULL)
  ZEND_NAMED_FE(zxid_get_meta_ss,_wrap_zxid_get_meta_ss, NULL)
  ZEND_NAMED_FE(zxid_get_meta,_wrap_zxid_get_meta, NULL)
  ZEND_NAMED_FE(zxid_get_ent_ss,_wrap_zxid_get_ent_ss, NULL)
  ZEND_NAMED_FE(zxid_get_ent,_wrap_zxid_get_ent, NULL)
  ZEND_NAMED_FE(zxid_get_ent_by_succinct_id,_wrap_zxid_get_ent_by_succinct_id, NULL)
  ZEND_NAMED_FE(zxid_get_ent_by_sha1_name,_wrap_zxid_get_ent_by_sha1_name, NULL)
  ZEND_NAMED_FE(zxid_load_cot_cache,_wrap_zxid_load_cot_cache, NULL)
  ZEND_NAMED_FE(zxid_key_info,_wrap_zxid_key_info, NULL)
  ZEND_NAMED_FE(zxid_key_desc,_wrap_zxid_key_desc, NULL)
  ZEND_NAMED_FE(zxid_ar_desc,_wrap_zxid_ar_desc, NULL)
  ZEND_NAMED_FE(zxid_sso_desc,_wrap_zxid_sso_desc, NULL)
  ZEND_NAMED_FE(zxid_slo_desc,_wrap_zxid_slo_desc, NULL)
  ZEND_NAMED_FE(zxid_mni_desc,_wrap_zxid_mni_desc, NULL)
  ZEND_NAMED_FE(zxid_ac_desc,_wrap_zxid_ac_desc, NULL)
  ZEND_NAMED_FE(zxid_idp_sso_desc,_wrap_zxid_idp_sso_desc, NULL)
  ZEND_NAMED_FE(zxid_sp_sso_desc,_wrap_zxid_sp_sso_desc, NULL)
  ZEND_NAMED_FE(zxid_sp_meta,_wrap_zxid_sp_meta, NULL)
  ZEND_NAMED_FE(zxid_send_sp_meta,_wrap_zxid_send_sp_meta, NULL)
  ZEND_NAMED_FE(zxid_sp_carml,_wrap_zxid_sp_carml, NULL)
  ZEND_NAMED_FE(zxid_my_entity_id,_wrap_zxid_my_entity_id, NULL)
  ZEND_NAMED_FE(zxid_my_cdc_url,_wrap_zxid_my_cdc_url, NULL)
  ZEND_NAMED_FE(zxid_my_issuer,_wrap_zxid_my_issuer, NULL)
  ZEND_NAMED_FE(zxid_sha1_file,_wrap_zxid_sha1_file, NULL)
  ZEND_NAMED_FE(zxid_extract_cert,_wrap_zxid_extract_cert, NULL)
  ZEND_NAMED_FE(zxid_extract_private_key,_wrap_zxid_extract_private_key, NULL)
  ZEND_NAMED_FE(zxid_read_cert,_wrap_zxid_read_cert, NULL)
  ZEND_NAMED_FE(zxid_read_private_key,_wrap_zxid_read_private_key, NULL)
  ZEND_NAMED_FE(zxid_set_opt,_wrap_zxid_set_opt, NULL)
  ZEND_NAMED_FE(zxid_url_set,_wrap_zxid_url_set, NULL)
  ZEND_NAMED_FE(zxid_init_conf,_wrap_zxid_init_conf, NULL)
  ZEND_NAMED_FE(zxid_init_conf_ctx,_wrap_zxid_init_conf_ctx, NULL)
  ZEND_NAMED_FE(zxid_new_conf,_wrap_zxid_new_conf, NULL)
  ZEND_NAMED_FE(zxid_parse_conf_raw,_wrap_zxid_parse_conf_raw, NULL)
  ZEND_NAMED_FE(zxid_parse_conf,_wrap_zxid_parse_conf, NULL)
  ZEND_NAMED_FE(zxid_mk_self_sig_cert,_wrap_zxid_mk_self_sig_cert, NULL)
  ZEND_NAMED_FE(zxid_load_map,_wrap_zxid_load_map, NULL)
  ZEND_NAMED_FE(zxid_load_need,_wrap_zxid_load_need, NULL)
  ZEND_NAMED_FE(zxid_load_atsrc,_wrap_zxid_load_atsrc, NULL)
  ZEND_NAMED_FE(zxid_new_at,_wrap_zxid_new_at, NULL)
  ZEND_NAMED_FE(zxid_load_cstr_list,_wrap_zxid_load_cstr_list, NULL)
  ZEND_NAMED_FE(zxid_is_needed,_wrap_zxid_is_needed, NULL)
  ZEND_NAMED_FE(zxid_find_map,_wrap_zxid_find_map, NULL)
  ZEND_NAMED_FE(zxid_find_cstr_list,_wrap_zxid_find_cstr_list, NULL)
  ZEND_NAMED_FE(zxid_find_at,_wrap_zxid_find_at, NULL)
  ZEND_NAMED_FE(zxid_parse_cgi,_wrap_zxid_parse_cgi, NULL)
  ZEND_NAMED_FE(zxid_new_cgi,_wrap_zxid_new_cgi, NULL)
  ZEND_NAMED_FE(zxid_get_sid_from_cookie,_wrap_zxid_get_sid_from_cookie, NULL)
  ZEND_NAMED_FE(zxid_fetch_ses,_wrap_zxid_fetch_ses, NULL)
  ZEND_NAMED_FE(zxid_get_ses,_wrap_zxid_get_ses, NULL)
  ZEND_NAMED_FE(zxid_put_ses,_wrap_zxid_put_ses, NULL)
  ZEND_NAMED_FE(zxid_del_ses,_wrap_zxid_del_ses, NULL)
  ZEND_NAMED_FE(zxid_get_ses_sso_a7n,_wrap_zxid_get_ses_sso_a7n, NULL)
  ZEND_NAMED_FE(zxid_get_ses_idp,_wrap_zxid_get_ses_idp, NULL)
  ZEND_NAMED_FE(zxid_find_ses,_wrap_zxid_find_ses, NULL)
  ZEND_NAMED_FE(zxid_pool_to_ldif,_wrap_zxid_pool_to_ldif, NULL)
  ZEND_NAMED_FE(zxid_pool_to_json,_wrap_zxid_pool_to_json, NULL)
  ZEND_NAMED_FE(zxid_pool_to_qs,_wrap_zxid_pool_to_qs, NULL)
  ZEND_NAMED_FE(zxid_ses_to_pool,_wrap_zxid_ses_to_pool, NULL)
  ZEND_NAMED_FE(zxid_add_attr_to_pool,_wrap_zxid_add_attr_to_pool, NULL)
  ZEND_NAMED_FE(zxid_parse_mni,_wrap_zxid_parse_mni, NULL)
  ZEND_NAMED_FE(zxid_put_user,_wrap_zxid_put_user, NULL)
  ZEND_NAMED_FE(zxid_get_user_nameid,_wrap_zxid_get_user_nameid, NULL)
  ZEND_NAMED_FE(zxid_user_change_nameid,_wrap_zxid_user_change_nameid, NULL)
  ZEND_NAMED_FE(zxid_pw_authn,_wrap_zxid_pw_authn, NULL)
  ZEND_NAMED_FE(zxid_version,_wrap_zxid_version, NULL)
  ZEND_NAMED_FE(zxid_version_str,_wrap_zxid_version_str, NULL)
  ZEND_NAMED_FE(zxid_date_time,_wrap_zxid_date_time, NULL)
  ZEND_NAMED_FE(zxid_mk_id,_wrap_zxid_mk_id, NULL)
  ZEND_NAMED_FE(zxid_soap_call_raw,_wrap_zxid_soap_call_raw, NULL)
  ZEND_NAMED_FE(zxid_lecp_check,_wrap_zxid_lecp_check, NULL)
  ZEND_NAMED_FE(zxid_cdc_read,_wrap_zxid_cdc_read, NULL)
  ZEND_NAMED_FE(zxid_cdc_check,_wrap_zxid_cdc_check, NULL)
  ZEND_NAMED_FE(zxid_soap_call_envelope,_wrap_zxid_soap_call_envelope, NULL)
  ZEND_NAMED_FE(zxid_soap_call_hdr_body,_wrap_zxid_soap_call_hdr_body, NULL)
  ZEND_NAMED_FE(zxid_soap_call_body,_wrap_zxid_soap_call_body, NULL)
  ZEND_NAMED_FE(zxid_soap_cgi_resp_body,_wrap_zxid_soap_cgi_resp_body, NULL)
  ZEND_NAMED_FE(zxid_saml2_post_enc,_wrap_zxid_saml2_post_enc, NULL)
  ZEND_NAMED_FE(zxid_saml2_redir_enc,_wrap_zxid_saml2_redir_enc, NULL)
  ZEND_NAMED_FE(zxid_saml2_redir_url,_wrap_zxid_saml2_redir_url, NULL)
  ZEND_NAMED_FE(zxid_saml2_redir,_wrap_zxid_saml2_redir, NULL)
  ZEND_NAMED_FE(zxid_saml2_resp_redir,_wrap_zxid_saml2_resp_redir, NULL)
  ZEND_NAMED_FE(zxid_saml_ok,_wrap_zxid_saml_ok, NULL)
  ZEND_NAMED_FE(zxid_decrypt_nameid,_wrap_zxid_decrypt_nameid, NULL)
  ZEND_NAMED_FE(zxid_decrypt_newnym,_wrap_zxid_decrypt_newnym, NULL)
  ZEND_NAMED_FE(zxid_chk_sig,_wrap_zxid_chk_sig, NULL)
  ZEND_NAMED_FE(zxid_map_val,_wrap_zxid_map_val, NULL)
  ZEND_NAMED_FE(zxid_idp_loc_raw,_wrap_zxid_idp_loc_raw, NULL)
  ZEND_NAMED_FE(zxid_idp_loc,_wrap_zxid_idp_loc, NULL)
  ZEND_NAMED_FE(zxid_idp_soap,_wrap_zxid_idp_soap, NULL)
  ZEND_NAMED_FE(zxid_sp_loc_by_index_raw,_wrap_zxid_sp_loc_by_index_raw, NULL)
  ZEND_NAMED_FE(zxid_sp_loc_raw,_wrap_zxid_sp_loc_raw, NULL)
  ZEND_NAMED_FE(zxid_sp_loc,_wrap_zxid_sp_loc, NULL)
  ZEND_NAMED_FE(zxid_sp_soap,_wrap_zxid_sp_soap, NULL)
  ZEND_NAMED_FE(zxid_decode_redir_or_post,_wrap_zxid_decode_redir_or_post, NULL)
  ZEND_NAMED_FE(zxid_sp_dispatch,_wrap_zxid_sp_dispatch, NULL)
  ZEND_NAMED_FE(zxid_sp_soap_dispatch,_wrap_zxid_sp_soap_dispatch, NULL)
  ZEND_NAMED_FE(zxid_sp_soap_parse,_wrap_zxid_sp_soap_parse, NULL)
  ZEND_NAMED_FE(zxid_idp_dispatch,_wrap_zxid_idp_dispatch, NULL)
  ZEND_NAMED_FE(zxid_idp_soap_dispatch,_wrap_zxid_idp_soap_dispatch, NULL)
  ZEND_NAMED_FE(zxid_idp_soap_parse,_wrap_zxid_idp_soap_parse, NULL)
  ZEND_NAMED_FE(zxid_add_ldif_attributes,_wrap_zxid_add_ldif_attributes, NULL)
  ZEND_NAMED_FE(zxid_idp_sso,_wrap_zxid_idp_sso, NULL)
  ZEND_NAMED_FE(zxid_pick_sso_profile,_wrap_zxid_pick_sso_profile, NULL)
  ZEND_NAMED_FE(zxid_start_sso,_wrap_zxid_start_sso, NULL)
  ZEND_NAMED_FE(zxid_start_sso_url,_wrap_zxid_start_sso_url, NULL)
  ZEND_NAMED_FE(zxid_start_sso_location,_wrap_zxid_start_sso_location, NULL)
  ZEND_NAMED_FE(zxid_sp_deref_art,_wrap_zxid_sp_deref_art, NULL)
  ZEND_NAMED_FE(zxid_sp_sso_finalize,_wrap_zxid_sp_sso_finalize, NULL)
  ZEND_NAMED_FE(zxid_sp_anon_finalize,_wrap_zxid_sp_anon_finalize, NULL)
  ZEND_NAMED_FE(zxid_saml2_map_nid_fmt,_wrap_zxid_saml2_map_nid_fmt, NULL)
  ZEND_NAMED_FE(zxid_saml2_map_protocol_binding,_wrap_zxid_saml2_map_protocol_binding, NULL)
  ZEND_NAMED_FE(zxid_protocol_binding_map_saml2,_wrap_zxid_protocol_binding_map_saml2, NULL)
  ZEND_NAMED_FE(zxid_saml2_map_authn_ctx,_wrap_zxid_saml2_map_authn_ctx, NULL)
  ZEND_NAMED_FE(zxid_issuer,_wrap_zxid_issuer, NULL)
  ZEND_NAMED_FE(zxid_sigres_map,_wrap_zxid_sigres_map, NULL)
  ZEND_NAMED_FE(zxid_validate_conditions,_wrap_zxid_validate_conditions, NULL)
  ZEND_NAMED_FE(zxid_sp_slo_soap,_wrap_zxid_sp_slo_soap, NULL)
  ZEND_NAMED_FE(zxid_sp_slo_redir,_wrap_zxid_sp_slo_redir, NULL)
  ZEND_NAMED_FE(zxid_sp_slo_do,_wrap_zxid_sp_slo_do, NULL)
  ZEND_NAMED_FE(zxid_idp_slo_do,_wrap_zxid_idp_slo_do, NULL)
  ZEND_NAMED_FE(zxid_slo_resp_redir,_wrap_zxid_slo_resp_redir, NULL)
  ZEND_NAMED_FE(zxid_sp_mni_soap,_wrap_zxid_sp_mni_soap, NULL)
  ZEND_NAMED_FE(zxid_sp_mni_redir,_wrap_zxid_sp_mni_redir, NULL)
  ZEND_NAMED_FE(zxid_mni_do,_wrap_zxid_mni_do, NULL)
  ZEND_NAMED_FE(zxid_mni_do_ss,_wrap_zxid_mni_do_ss, NULL)
  ZEND_NAMED_FE(zxid_pep_az_soap,_wrap_zxid_pep_az_soap, NULL)
  ZEND_NAMED_FE(zxid_find_attribute,_wrap_zxid_find_attribute, NULL)
  ZEND_NAMED_FE(zxid_mk_authn_req,_wrap_zxid_mk_authn_req, NULL)
  ZEND_NAMED_FE(zxid_mk_art_deref,_wrap_zxid_mk_art_deref, NULL)
  ZEND_NAMED_FE(zxid_mk_status,_wrap_zxid_mk_Status, NULL)
  ZEND_NAMED_FE(zxid_ok,_wrap_zxid_OK, NULL)
  ZEND_NAMED_FE(zxid_mk_enc_id,_wrap_zxid_mk_enc_id, NULL)
  ZEND_NAMED_FE(zxid_mk_enc_a7n,_wrap_zxid_mk_enc_a7n, NULL)
  ZEND_NAMED_FE(zxid_mk_logout,_wrap_zxid_mk_logout, NULL)
  ZEND_NAMED_FE(zxid_mk_logout_resp,_wrap_zxid_mk_logout_resp, NULL)
  ZEND_NAMED_FE(zxid_mk_mni,_wrap_zxid_mk_mni, NULL)
  ZEND_NAMED_FE(zxid_mk_mni_resp,_wrap_zxid_mk_mni_resp, NULL)
  ZEND_NAMED_FE(zxid_mk_a7n,_wrap_zxid_mk_a7n, NULL)
  ZEND_NAMED_FE(zxid_mk_subj,_wrap_zxid_mk_subj, NULL)
  ZEND_NAMED_FE(zxid_mk_an_stmt,_wrap_zxid_mk_an_stmt, NULL)
  ZEND_NAMED_FE(zxid_mk_saml_resp,_wrap_zxid_mk_saml_resp, NULL)
  ZEND_NAMED_FE(zxid_mk_xacml_resp,_wrap_zxid_mk_xacml_resp, NULL)
  ZEND_NAMED_FE(zxid_mk_xacml_simple_at,_wrap_zxid_mk_xacml_simple_at, NULL)
  ZEND_NAMED_FE(zxid_mk_az,_wrap_zxid_mk_az, NULL)
  ZEND_NAMED_FE(zxid_mk_attribute,_wrap_zxid_mk_attribute, NULL)
  ZEND_NAMED_FE(zxid_mk_di_query,_wrap_zxid_mk_di_query, NULL)
  ZEND_NAMED_FE(zxid_mk_addr,_wrap_zxid_mk_addr, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_select,_wrap_zxid_mk_dap_select, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_query_item,_wrap_zxid_mk_dap_query_item, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_testop,_wrap_zxid_mk_dap_testop, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_test_item,_wrap_zxid_mk_dap_test_item, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_resquery,_wrap_zxid_mk_dap_resquery, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_subscription,_wrap_zxid_mk_dap_subscription, NULL)
  ZEND_NAMED_FE(zxid_mk_dap_query,_wrap_zxid_mk_dap_query, NULL)
  ZEND_NAMED_FE(zxid_map_sec_mech,_wrap_zxid_map_sec_mech, NULL)
  ZEND_NAMED_FE(zxid_wsc_call,_wrap_zxid_wsc_call, NULL)
  ZEND_NAMED_FE(zxid_new_envf,_wrap_zxid_new_envf, NULL)
  ZEND_NAMED_FE(zxid_callf,_wrap_zxid_callf, NULL)
  ZEND_NAMED_FE(zxid_nice_sha1,_wrap_zxid_nice_sha1, NULL)
  ZEND_NAMED_FE(zxid_epr_path,_wrap_zxid_epr_path, NULL)
  ZEND_NAMED_FE(zxid_get_epr,_wrap_zxid_get_epr, NULL)
  ZEND_NAMED_FE(zxid_find_epr,_wrap_zxid_find_epr, NULL)
  ZEND_NAMED_FE(zxid_cache_epr,_wrap_zxid_cache_epr, NULL)
  ZEND_NAMED_FE(zxid_snarf_eprs_from_ses,_wrap_zxid_snarf_eprs_from_ses, NULL)
  ZEND_NAMED_FE(std_basis_64_set,_wrap_std_basis_64_set, NULL)
  ZEND_NAMED_FE(std_basis_64_get,_wrap_std_basis_64_get, NULL)
  ZEND_NAMED_FE(safe_basis_64_set,_wrap_safe_basis_64_set, NULL)
  ZEND_NAMED_FE(safe_basis_64_get,_wrap_safe_basis_64_get, NULL)
  ZEND_NAMED_FE(zx_std_index_64_set,_wrap_zx_std_index_64_set, NULL)
  ZEND_NAMED_FE(zx_std_index_64_get,_wrap_zx_std_index_64_get, NULL)
  ZEND_NAMED_FE(base64_fancy_raw,_wrap_base64_fancy_raw, NULL)
  ZEND_NAMED_FE(unbase64_raw,_wrap_unbase64_raw, NULL)
  ZEND_NAMED_FE(sha1_safe_base64,_wrap_sha1_safe_base64, NULL)
  ZEND_NAMED_FE(zx_zlib_raw_deflate,_wrap_zx_zlib_raw_deflate, NULL)
  ZEND_NAMED_FE(zx_zlib_raw_inflate,_wrap_zx_zlib_raw_inflate, NULL)
  ZEND_NAMED_FE(zx_url_encode_len,_wrap_zx_url_encode_len, NULL)
  ZEND_NAMED_FE(zx_url_encode_raw,_wrap_zx_url_encode_raw, NULL)
  ZEND_NAMED_FE(zx_url_encode,_wrap_zx_url_encode, NULL)
  ZEND_NAMED_FE(read_all,_wrap_read_all, NULL)
  ZEND_NAMED_FE(name_from_path,_wrap_name_from_path, NULL)
  ZEND_NAMED_FE(open_fd_from_path,_wrap_open_fd_from_path, NULL)
  ZEND_NAMED_FE(read_all_fd,_wrap_read_all_fd, NULL)
  ZEND_NAMED_FE(write_all_fd,_wrap_write_all_fd, NULL)
  ZEND_NAMED_FE(write_all_path_fmt,_wrap_write_all_path_fmt, NULL)
  ZEND_NAMED_FE(close_file,_wrap_close_file, NULL)
  ZEND_NAMED_FE(zxid_curl_ctx_p_set,_wrap_zxid_curl_ctx_p_set, NULL)
  ZEND_NAMED_FE(zxid_curl_ctx_p_get,_wrap_zxid_curl_ctx_p_get, NULL)
  ZEND_NAMED_FE(zxid_curl_ctx_lim_set,_wrap_zxid_curl_ctx_lim_set, NULL)
  ZEND_NAMED_FE(zxid_curl_ctx_lim_get,_wrap_zxid_curl_ctx_lim_get, NULL)
  ZEND_NAMED_FE(new_zxid_curl_ctx,_wrap_new_zxid_curl_ctx, NULL)
  ZEND_NAMED_FE(zxid_curl_write_data,_wrap_zxid_curl_write_data, NULL)
  ZEND_NAMED_FE(zxid_curl_read_data,_wrap_zxid_curl_read_data, NULL)
 {NULL, NULL, NULL}
};

zend_module_entry zxid_module_entry = {
#if ZEND_MODULE_API_NO > 20010900
    STANDARD_MODULE_HEADER,
#endif
    "zxid",
    zxid_functions,
    PHP_MINIT(zxid),
    PHP_MSHUTDOWN(zxid),
    PHP_RINIT(zxid),
    PHP_RSHUTDOWN(zxid),
    PHP_MINFO(zxid),
#if ZEND_MODULE_API_NO > 20010900
    NO_VERSION_YET,
#endif
    STANDARD_MODULE_PROPERTIES
};
zend_module_entry* SWIG_module_entry = &zxid_module_entry;


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static swig_type_info _swigt__int = {"_int", "int", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_X509 = {"_p_X509", "X509 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_p_void_size_t__p_void = {"_p_f_p_void_size_t__p_void", "void *(*)(void *,size_t)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_f_size_t__p_void = {"_p_f_size_t__p_void", "void *(*)(size_t)", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_fdtype = {"_p_fdtype", "fdtype *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_zx_ns_s = {"_p_p_zx_ns_s", "struct zx_ns_s **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_zx_xenc_EncryptedKey_s = {"_p_p_zx_xenc_EncryptedKey_s", "struct zx_xenc_EncryptedKey_s **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_timeval = {"_p_timeval", "struct timeval *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_a_Address_s = {"_p_zx_a_Address_s", "struct zx_a_Address_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_a_EndpointReference_s = {"_p_zx_a_EndpointReference_s", "struct zx_a_EndpointReference_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_any_attr_s = {"_p_zx_any_attr_s", "struct zx_any_attr_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_any_elem_s = {"_p_zx_any_elem_s", "struct zx_any_elem_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_ctx = {"_p_zx_ctx", "struct zx_ctx *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_QueryItem_s = {"_p_zx_dap_QueryItem_s", "struct zx_dap_QueryItem_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_Query_s = {"_p_zx_dap_Query_s", "struct zx_dap_Query_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_ResultQuery_s = {"_p_zx_dap_ResultQuery_s", "struct zx_dap_ResultQuery_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_Select_s = {"_p_zx_dap_Select_s", "struct zx_dap_Select_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_Subscription_s = {"_p_zx_dap_Subscription_s", "struct zx_dap_Subscription_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_TestItem_s = {"_p_zx_dap_TestItem_s", "struct zx_dap_TestItem_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_dap_TestOp_s = {"_p_zx_dap_TestOp_s", "struct zx_dap_TestOp_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_di_Query_s = {"_p_zx_di_Query_s", "struct zx_di_Query_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_ds_KeyInfo_s = {"_p_zx_ds_KeyInfo_s", "struct zx_ds_KeyInfo_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_ds_Reference_s = {"_p_zx_ds_Reference_s", "struct zx_ds_Reference_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_ds_Signature_s = {"_p_zx_ds_Signature_s", "struct zx_ds_Signature_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_e_Body_s = {"_p_zx_e_Body_s", "struct zx_e_Body_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_e_Envelope_s = {"_p_zx_e_Envelope_s", "struct zx_e_Envelope_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_e_Header_s = {"_p_zx_e_Header_s", "struct zx_e_Header_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_elem_s = {"_p_zx_elem_s", "struct zx_elem_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_ff12_Assertion_s = {"_p_zx_ff12_Assertion_s", "struct zx_ff12_Assertion_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_ArtifactResolutionService_s = {"_p_zx_md_ArtifactResolutionService_s", "struct zx_md_ArtifactResolutionService_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_AssertionConsumerService_s = {"_p_zx_md_AssertionConsumerService_s", "struct zx_md_AssertionConsumerService_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_EntityDescriptor_s = {"_p_zx_md_EntityDescriptor_s", "struct zx_md_EntityDescriptor_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_IDPSSODescriptor_s = {"_p_zx_md_IDPSSODescriptor_s", "struct zx_md_IDPSSODescriptor_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_KeyDescriptor_s = {"_p_zx_md_KeyDescriptor_s", "struct zx_md_KeyDescriptor_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_ManageNameIDService_s = {"_p_zx_md_ManageNameIDService_s", "struct zx_md_ManageNameIDService_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_SPSSODescriptor_s = {"_p_zx_md_SPSSODescriptor_s", "struct zx_md_SPSSODescriptor_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_SingleLogoutService_s = {"_p_zx_md_SingleLogoutService_s", "struct zx_md_SingleLogoutService_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_md_SingleSignOnService_s = {"_p_zx_md_SingleSignOnService_s", "struct zx_md_SingleSignOnService_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_node_s = {"_p_zx_node_s", "struct zx_node_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_ns_s = {"_p_zx_ns_s", "struct zx_ns_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_root_s = {"_p_zx_root_s", "struct zx_root_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa11_Assertion_s = {"_p_zx_sa11_Assertion_s", "struct zx_sa11_Assertion_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_Assertion_s = {"_p_zx_sa_Assertion_s", "struct zx_sa_Assertion_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_AttributeStatement_s = {"_p_zx_sa_AttributeStatement_s", "struct zx_sa_AttributeStatement_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_Attribute_s = {"_p_zx_sa_Attribute_s", "struct zx_sa_Attribute_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_AuthnStatement_s = {"_p_zx_sa_AuthnStatement_s", "struct zx_sa_AuthnStatement_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_EncryptedAssertion_s = {"_p_zx_sa_EncryptedAssertion_s", "struct zx_sa_EncryptedAssertion_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_EncryptedID_s = {"_p_zx_sa_EncryptedID_s", "struct zx_sa_EncryptedID_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_Issuer_s = {"_p_zx_sa_Issuer_s", "struct zx_sa_Issuer_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_NameID_s = {"_p_zx_sa_NameID_s", "struct zx_sa_NameID_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sa_Subject_s = {"_p_zx_sa_Subject_s", "struct zx_sa_Subject_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_ArtifactResolve_s = {"_p_zx_sp_ArtifactResolve_s", "struct zx_sp_ArtifactResolve_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_AuthnRequest_s = {"_p_zx_sp_AuthnRequest_s", "struct zx_sp_AuthnRequest_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_LogoutRequest_s = {"_p_zx_sp_LogoutRequest_s", "struct zx_sp_LogoutRequest_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_LogoutResponse_s = {"_p_zx_sp_LogoutResponse_s", "struct zx_sp_LogoutResponse_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_ManageNameIDRequest_s = {"_p_zx_sp_ManageNameIDRequest_s", "struct zx_sp_ManageNameIDRequest_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_ManageNameIDResponse_s = {"_p_zx_sp_ManageNameIDResponse_s", "struct zx_sp_ManageNameIDResponse_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_NewEncryptedID_s = {"_p_zx_sp_NewEncryptedID_s", "struct zx_sp_NewEncryptedID_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_Response_s = {"_p_zx_sp_Response_s", "struct zx_sp_Response_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_sp_Status_s = {"_p_zx_sp_Status_s", "struct zx_sp_Status_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_str = {"_p_zx_str", "struct zx_str *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_tok = {"_p_zx_tok", "struct zx_tok *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_xac_Attribute_s = {"_p_zx_xac_Attribute_s", "struct zx_xac_Attribute_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_xac_Response_s = {"_p_zx_xac_Response_s", "struct zx_xac_Response_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_xasa_XACMLAuthzDecisionStatement_s = {"_p_zx_xasa_XACMLAuthzDecisionStatement_s", "struct zx_xasa_XACMLAuthzDecisionStatement_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_xasp_XACMLAuthzDecisionQuery_s = {"_p_zx_xasp_XACMLAuthzDecisionQuery_s", "struct zx_xasp_XACMLAuthzDecisionQuery_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_xenc_EncryptedData_s = {"_p_zx_xenc_EncryptedData_s", "struct zx_xenc_EncryptedData_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zx_xenc_EncryptedKey_s = {"_p_zx_xenc_EncryptedKey_s", "struct zx_xenc_EncryptedKey_s *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_atsrc = {"_p_zxid_atsrc", "struct zxid_atsrc *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_attr = {"_p_zxid_attr", "struct zxid_attr *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_cgi = {"_p_zxid_cgi", "struct zxid_cgi *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_conf = {"_p_zxid_conf", "struct zxid_conf *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_cstr_list = {"_p_zxid_cstr_list", "struct zxid_cstr_list *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_curl_ctx = {"_p_zxid_curl_ctx", "struct zxid_curl_ctx *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_entity = {"_p_zxid_entity", "struct zxid_entity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_map = {"_p_zxid_map", "struct zxid_map *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_need = {"_p_zxid_need", "struct zxid_need *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxid_ses = {"_p_zxid_ses", "struct zxid_ses *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_zxsig_ref = {"_p_zxsig_ref", "struct zxsig_ref *", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__int,
  &_swigt__p_X509,
  &_swigt__p_char,
  &_swigt__p_f_p_void__void,
  &_swigt__p_f_p_void_size_t__p_void,
  &_swigt__p_f_size_t__p_void,
  &_swigt__p_fdtype,
  &_swigt__p_int,
  &_swigt__p_p_char,
  &_swigt__p_p_void,
  &_swigt__p_p_zx_ns_s,
  &_swigt__p_p_zx_xenc_EncryptedKey_s,
  &_swigt__p_time_t,
  &_swigt__p_timeval,
  &_swigt__p_unsigned_char,
  &_swigt__p_void,
  &_swigt__p_zx_a_Address_s,
  &_swigt__p_zx_a_EndpointReference_s,
  &_swigt__p_zx_any_attr_s,
  &_swigt__p_zx_any_elem_s,
  &_swigt__p_zx_ctx,
  &_swigt__p_zx_dap_QueryItem_s,
  &_swigt__p_zx_dap_Query_s,
  &_swigt__p_zx_dap_ResultQuery_s,
  &_swigt__p_zx_dap_Select_s,
  &_swigt__p_zx_dap_Subscription_s,
  &_swigt__p_zx_dap_TestItem_s,
  &_swigt__p_zx_dap_TestOp_s,
  &_swigt__p_zx_di_Query_s,
  &_swigt__p_zx_ds_KeyInfo_s,
  &_swigt__p_zx_ds_Reference_s,
  &_swigt__p_zx_ds_Signature_s,
  &_swigt__p_zx_e_Body_s,
  &_swigt__p_zx_e_Envelope_s,
  &_swigt__p_zx_e_Header_s,
  &_swigt__p_zx_elem_s,
  &_swigt__p_zx_ff12_Assertion_s,
  &_swigt__p_zx_md_ArtifactResolutionService_s,
  &_swigt__p_zx_md_AssertionConsumerService_s,
  &_swigt__p_zx_md_EntityDescriptor_s,
  &_swigt__p_zx_md_IDPSSODescriptor_s,
  &_swigt__p_zx_md_KeyDescriptor_s,
  &_swigt__p_zx_md_ManageNameIDService_s,
  &_swigt__p_zx_md_SPSSODescriptor_s,
  &_swigt__p_zx_md_SingleLogoutService_s,
  &_swigt__p_zx_md_SingleSignOnService_s,
  &_swigt__p_zx_node_s,
  &_swigt__p_zx_ns_s,
  &_swigt__p_zx_root_s,
  &_swigt__p_zx_sa11_Assertion_s,
  &_swigt__p_zx_sa_Assertion_s,
  &_swigt__p_zx_sa_AttributeStatement_s,
  &_swigt__p_zx_sa_Attribute_s,
  &_swigt__p_zx_sa_AuthnStatement_s,
  &_swigt__p_zx_sa_EncryptedAssertion_s,
  &_swigt__p_zx_sa_EncryptedID_s,
  &_swigt__p_zx_sa_Issuer_s,
  &_swigt__p_zx_sa_NameID_s,
  &_swigt__p_zx_sa_Subject_s,
  &_swigt__p_zx_sp_ArtifactResolve_s,
  &_swigt__p_zx_sp_AuthnRequest_s,
  &_swigt__p_zx_sp_LogoutRequest_s,
  &_swigt__p_zx_sp_LogoutResponse_s,
  &_swigt__p_zx_sp_ManageNameIDRequest_s,
  &_swigt__p_zx_sp_ManageNameIDResponse_s,
  &_swigt__p_zx_sp_NewEncryptedID_s,
  &_swigt__p_zx_sp_Response_s,
  &_swigt__p_zx_sp_Status_s,
  &_swigt__p_zx_str,
  &_swigt__p_zx_tok,
  &_swigt__p_zx_xac_Attribute_s,
  &_swigt__p_zx_xac_Response_s,
  &_swigt__p_zx_xasa_XACMLAuthzDecisionStatement_s,
  &_swigt__p_zx_xasp_XACMLAuthzDecisionQuery_s,
  &_swigt__p_zx_xenc_EncryptedData_s,
  &_swigt__p_zx_xenc_EncryptedKey_s,
  &_swigt__p_zxid_atsrc,
  &_swigt__p_zxid_attr,
  &_swigt__p_zxid_cgi,
  &_swigt__p_zxid_conf,
  &_swigt__p_zxid_cstr_list,
  &_swigt__p_zxid_curl_ctx,
  &_swigt__p_zxid_entity,
  &_swigt__p_zxid_map,
  &_swigt__p_zxid_need,
  &_swigt__p_zxid_ses,
  &_swigt__p_zxsig_ref,
};

static swig_cast_info _swigc__int[] = {  {&_swigt__int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_X509[] = {  {&_swigt__p_X509, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void__void[] = {  {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_p_void_size_t__p_void[] = {  {&_swigt__p_f_p_void_size_t__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_f_size_t__p_void[] = {  {&_swigt__p_f_size_t__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_fdtype[] = {  {&_swigt__p_fdtype, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_char[] = {  {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_void[] = {  {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_zx_ns_s[] = {  {&_swigt__p_p_zx_ns_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_zx_xenc_EncryptedKey_s[] = {  {&_swigt__p_p_zx_xenc_EncryptedKey_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_time_t[] = {  {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_timeval[] = {  {&_swigt__p_timeval, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_a_Address_s[] = {  {&_swigt__p_zx_a_Address_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_a_EndpointReference_s[] = {  {&_swigt__p_zx_a_EndpointReference_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_any_attr_s[] = {  {&_swigt__p_zx_any_attr_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_any_elem_s[] = {  {&_swigt__p_zx_any_elem_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_ctx[] = {  {&_swigt__p_zx_ctx, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_QueryItem_s[] = {  {&_swigt__p_zx_dap_QueryItem_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_Query_s[] = {  {&_swigt__p_zx_dap_Query_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_ResultQuery_s[] = {  {&_swigt__p_zx_dap_ResultQuery_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_Select_s[] = {  {&_swigt__p_zx_dap_Select_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_Subscription_s[] = {  {&_swigt__p_zx_dap_Subscription_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_TestItem_s[] = {  {&_swigt__p_zx_dap_TestItem_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_dap_TestOp_s[] = {  {&_swigt__p_zx_dap_TestOp_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_di_Query_s[] = {  {&_swigt__p_zx_di_Query_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_ds_KeyInfo_s[] = {  {&_swigt__p_zx_ds_KeyInfo_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_ds_Reference_s[] = {  {&_swigt__p_zx_ds_Reference_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_ds_Signature_s[] = {  {&_swigt__p_zx_ds_Signature_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_e_Body_s[] = {  {&_swigt__p_zx_e_Body_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_e_Envelope_s[] = {  {&_swigt__p_zx_e_Envelope_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_e_Header_s[] = {  {&_swigt__p_zx_e_Header_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_elem_s[] = {  {&_swigt__p_zx_elem_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_ff12_Assertion_s[] = {  {&_swigt__p_zx_ff12_Assertion_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_ArtifactResolutionService_s[] = {  {&_swigt__p_zx_md_ArtifactResolutionService_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_AssertionConsumerService_s[] = {  {&_swigt__p_zx_md_AssertionConsumerService_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_EntityDescriptor_s[] = {  {&_swigt__p_zx_md_EntityDescriptor_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_IDPSSODescriptor_s[] = {  {&_swigt__p_zx_md_IDPSSODescriptor_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_KeyDescriptor_s[] = {  {&_swigt__p_zx_md_KeyDescriptor_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_ManageNameIDService_s[] = {  {&_swigt__p_zx_md_ManageNameIDService_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_SPSSODescriptor_s[] = {  {&_swigt__p_zx_md_SPSSODescriptor_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_SingleLogoutService_s[] = {  {&_swigt__p_zx_md_SingleLogoutService_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_md_SingleSignOnService_s[] = {  {&_swigt__p_zx_md_SingleSignOnService_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_node_s[] = {  {&_swigt__p_zx_node_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_ns_s[] = {  {&_swigt__p_zx_ns_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_root_s[] = {  {&_swigt__p_zx_root_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa11_Assertion_s[] = {  {&_swigt__p_zx_sa11_Assertion_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_Assertion_s[] = {  {&_swigt__p_zx_sa_Assertion_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_AttributeStatement_s[] = {  {&_swigt__p_zx_sa_AttributeStatement_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_Attribute_s[] = {  {&_swigt__p_zx_sa_Attribute_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_AuthnStatement_s[] = {  {&_swigt__p_zx_sa_AuthnStatement_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_EncryptedAssertion_s[] = {  {&_swigt__p_zx_sa_EncryptedAssertion_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_EncryptedID_s[] = {  {&_swigt__p_zx_sa_EncryptedID_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_Issuer_s[] = {  {&_swigt__p_zx_sa_Issuer_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_NameID_s[] = {  {&_swigt__p_zx_sa_NameID_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sa_Subject_s[] = {  {&_swigt__p_zx_sa_Subject_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_ArtifactResolve_s[] = {  {&_swigt__p_zx_sp_ArtifactResolve_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_AuthnRequest_s[] = {  {&_swigt__p_zx_sp_AuthnRequest_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_LogoutRequest_s[] = {  {&_swigt__p_zx_sp_LogoutRequest_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_LogoutResponse_s[] = {  {&_swigt__p_zx_sp_LogoutResponse_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_ManageNameIDRequest_s[] = {  {&_swigt__p_zx_sp_ManageNameIDRequest_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_ManageNameIDResponse_s[] = {  {&_swigt__p_zx_sp_ManageNameIDResponse_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_NewEncryptedID_s[] = {  {&_swigt__p_zx_sp_NewEncryptedID_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_Response_s[] = {  {&_swigt__p_zx_sp_Response_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_sp_Status_s[] = {  {&_swigt__p_zx_sp_Status_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_str[] = {  {&_swigt__p_zx_str, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_tok[] = {  {&_swigt__p_zx_tok, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_xac_Attribute_s[] = {  {&_swigt__p_zx_xac_Attribute_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_xac_Response_s[] = {  {&_swigt__p_zx_xac_Response_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_xasa_XACMLAuthzDecisionStatement_s[] = {  {&_swigt__p_zx_xasa_XACMLAuthzDecisionStatement_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_xasp_XACMLAuthzDecisionQuery_s[] = {  {&_swigt__p_zx_xasp_XACMLAuthzDecisionQuery_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_xenc_EncryptedData_s[] = {  {&_swigt__p_zx_xenc_EncryptedData_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zx_xenc_EncryptedKey_s[] = {  {&_swigt__p_zx_xenc_EncryptedKey_s, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_atsrc[] = {  {&_swigt__p_zxid_atsrc, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_attr[] = {  {&_swigt__p_zxid_attr, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_cgi[] = {  {&_swigt__p_zxid_cgi, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_conf[] = {  {&_swigt__p_zxid_conf, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_cstr_list[] = {  {&_swigt__p_zxid_cstr_list, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_curl_ctx[] = {  {&_swigt__p_zxid_curl_ctx, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_entity[] = {  {&_swigt__p_zxid_entity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_map[] = {  {&_swigt__p_zxid_map, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_need[] = {  {&_swigt__p_zxid_need, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxid_ses[] = {  {&_swigt__p_zxid_ses, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_zxsig_ref[] = {  {&_swigt__p_zxsig_ref, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__int,
  _swigc__p_X509,
  _swigc__p_char,
  _swigc__p_f_p_void__void,
  _swigc__p_f_p_void_size_t__p_void,
  _swigc__p_f_size_t__p_void,
  _swigc__p_fdtype,
  _swigc__p_int,
  _swigc__p_p_char,
  _swigc__p_p_void,
  _swigc__p_p_zx_ns_s,
  _swigc__p_p_zx_xenc_EncryptedKey_s,
  _swigc__p_time_t,
  _swigc__p_timeval,
  _swigc__p_unsigned_char,
  _swigc__p_void,
  _swigc__p_zx_a_Address_s,
  _swigc__p_zx_a_EndpointReference_s,
  _swigc__p_zx_any_attr_s,
  _swigc__p_zx_any_elem_s,
  _swigc__p_zx_ctx,
  _swigc__p_zx_dap_QueryItem_s,
  _swigc__p_zx_dap_Query_s,
  _swigc__p_zx_dap_ResultQuery_s,
  _swigc__p_zx_dap_Select_s,
  _swigc__p_zx_dap_Subscription_s,
  _swigc__p_zx_dap_TestItem_s,
  _swigc__p_zx_dap_TestOp_s,
  _swigc__p_zx_di_Query_s,
  _swigc__p_zx_ds_KeyInfo_s,
  _swigc__p_zx_ds_Reference_s,
  _swigc__p_zx_ds_Signature_s,
  _swigc__p_zx_e_Body_s,
  _swigc__p_zx_e_Envelope_s,
  _swigc__p_zx_e_Header_s,
  _swigc__p_zx_elem_s,
  _swigc__p_zx_ff12_Assertion_s,
  _swigc__p_zx_md_ArtifactResolutionService_s,
  _swigc__p_zx_md_AssertionConsumerService_s,
  _swigc__p_zx_md_EntityDescriptor_s,
  _swigc__p_zx_md_IDPSSODescriptor_s,
  _swigc__p_zx_md_KeyDescriptor_s,
  _swigc__p_zx_md_ManageNameIDService_s,
  _swigc__p_zx_md_SPSSODescriptor_s,
  _swigc__p_zx_md_SingleLogoutService_s,
  _swigc__p_zx_md_SingleSignOnService_s,
  _swigc__p_zx_node_s,
  _swigc__p_zx_ns_s,
  _swigc__p_zx_root_s,
  _swigc__p_zx_sa11_Assertion_s,
  _swigc__p_zx_sa_Assertion_s,
  _swigc__p_zx_sa_AttributeStatement_s,
  _swigc__p_zx_sa_Attribute_s,
  _swigc__p_zx_sa_AuthnStatement_s,
  _swigc__p_zx_sa_EncryptedAssertion_s,
  _swigc__p_zx_sa_EncryptedID_s,
  _swigc__p_zx_sa_Issuer_s,
  _swigc__p_zx_sa_NameID_s,
  _swigc__p_zx_sa_Subject_s,
  _swigc__p_zx_sp_ArtifactResolve_s,
  _swigc__p_zx_sp_AuthnRequest_s,
  _swigc__p_zx_sp_LogoutRequest_s,
  _swigc__p_zx_sp_LogoutResponse_s,
  _swigc__p_zx_sp_ManageNameIDRequest_s,
  _swigc__p_zx_sp_ManageNameIDResponse_s,
  _swigc__p_zx_sp_NewEncryptedID_s,
  _swigc__p_zx_sp_Response_s,
  _swigc__p_zx_sp_Status_s,
  _swigc__p_zx_str,
  _swigc__p_zx_tok,
  _swigc__p_zx_xac_Attribute_s,
  _swigc__p_zx_xac_Response_s,
  _swigc__p_zx_xasa_XACMLAuthzDecisionStatement_s,
  _swigc__p_zx_xasp_XACMLAuthzDecisionQuery_s,
  _swigc__p_zx_xenc_EncryptedData_s,
  _swigc__p_zx_xenc_EncryptedKey_s,
  _swigc__p_zxid_atsrc,
  _swigc__p_zxid_attr,
  _swigc__p_zxid_cgi,
  _swigc__p_zxid_conf,
  _swigc__p_zxid_cstr_list,
  _swigc__p_zxid_curl_ctx,
  _swigc__p_zxid_entity,
  _swigc__p_zxid_map,
  _swigc__p_zxid_need,
  _swigc__p_zxid_ses,
  _swigc__p_zxsig_ref,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

/* end header section */
/* vdecl subsection */
static int le_swig__p_f_p_void__void=0; /* handle for  */
static int le_swig__p_zxid_need=0; /* handle for zxid_need */
static int le_swig__p_zx_str=0; /* handle for zx_str */
static int le_swig__p_zx_dap_TestItem_s=0; /* handle for zx_str */
static int le_swig__p_zxid_atsrc=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_dap_TestOp_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_ds_Reference_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_a_EndpointReference_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_xac_Response_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_sp_Response_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_sp_LogoutResponse_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zx_sp_ManageNameIDResponse_s=0; /* handle for zxid_atsrc */
static int le_swig__p_zxid_curl_ctx=0; /* handle for zxid_curl_ctx */
static int le_swig__p_zx_md_SPSSODescriptor_s=0; /* handle for zxid_curl_ctx */
static int le_swig__p_zx_md_IDPSSODescriptor_s=0; /* handle for zxid_curl_ctx */
static int le_swig__p_zx_md_KeyDescriptor_s=0; /* handle for zxid_curl_ctx */
static int le_swig__p_zx_md_EntityDescriptor_s=0; /* handle for zxid_curl_ctx */
static int le_swig__p_zx_node_s=0; /* handle for zx_node_s */
static int le_swig__p_timeval=0; /* handle for zx_node_s */
static int le_swig__p_zxid_entity=0; /* handle for zxid_entity */
static int le_swig__p_f_p_void_size_t__p_void=0; /* handle for zxid_entity */
static int le_swig__p_f_size_t__p_void=0; /* handle for zxid_entity */
static int le_swig__p_void=0; /* handle for zxid_entity */
static int le_swig__p_p_void=0; /* handle for zxid_entity */
static int le_swig__p_fdtype=0; /* handle for zxid_entity */
static int le_swig__p_X509=0; /* handle for zxid_entity */
static int le_swig__p_int=0; /* handle for zxid_entity */
static int le_swig__p_zx_e_Envelope_s=0; /* handle for zxid_entity */
static int le_swig__p_zx_sa_EncryptedAssertion_s=0; /* handle for zxid_entity */
static int le_swig__p_zx_sa_Assertion_s=0; /* handle for zxid_entity */
static int le_swig__p_zx_sa11_Assertion_s=0; /* handle for zxid_entity */
static int le_swig__p_zx_ff12_Assertion_s=0; /* handle for zxid_entity */
static int le_swig__p_zx_dap_Subscription_s=0; /* handle for zxid_entity */
static int le_swig__p_zx_e_Body_s=0; /* handle for zxid_entity */
static int le_swig__p_zxid_ses=0; /* handle for zxid_ses */
static int le_swig__p_zx_sa_Issuer_s=0; /* handle for zxid_ses */
static int le_swig__p_zx_dap_Select_s=0; /* handle for zxid_ses */
static int le_swig__p_zx_any_attr_s=0; /* handle for zx_any_attr_s */
static int le_swig__p_time_t=0; /* handle for zx_any_attr_s */
static int le_swig__p_zx_sa_NameID_s=0; /* handle for zx_any_attr_s */
static int le_swig__p_zxid_attr=0; /* handle for zxid_attr */
static int le_swig__p_zx_any_elem_s=0; /* handle for zx_any_elem_s */
static int le_swig__p_zx_elem_s=0; /* handle for zx_elem_s */
static int le_swig__int=0; /* handle for zx_elem_s */
static int le_swig__p_zx_a_Address_s=0; /* handle for zx_elem_s */
static int le_swig__p_zx_md_AssertionConsumerService_s=0; /* handle for zx_elem_s */
static int le_swig__p_zx_md_ManageNameIDService_s=0; /* handle for zx_elem_s */
static int le_swig__p_zx_md_SingleLogoutService_s=0; /* handle for zx_elem_s */
static int le_swig__p_zx_md_SingleSignOnService_s=0; /* handle for zx_elem_s */
static int le_swig__p_zx_md_ArtifactResolutionService_s=0; /* handle for zx_elem_s */
static int le_swig__p_p_char=0; /* handle for zx_elem_s */
static int le_swig__p_char=0; /* handle for zx_elem_s */
static int le_swig__p_zx_sp_ArtifactResolve_s=0; /* handle for zx_elem_s */
static int le_swig__p_zxid_cgi=0; /* handle for zxid_cgi */
static int le_swig__p_p_zx_xenc_EncryptedKey_s=0; /* handle for zxid_cgi */
static int le_swig__p_zx_xenc_EncryptedKey_s=0; /* handle for zxid_cgi */
static int le_swig__p_zxid_conf=0; /* handle for zxid_conf */
static int le_swig__p_zx_dap_QueryItem_s=0; /* handle for zxid_conf */
static int le_swig__p_zx_ctx=0; /* handle for zx_ctx */
static int le_swig__p_zx_xasa_XACMLAuthzDecisionStatement_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sa_AttributeStatement_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sa_AuthnStatement_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_xac_Attribute_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sa_Attribute_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_ds_KeyInfo_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_ds_Signature_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sa_Subject_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sp_ManageNameIDRequest_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sp_LogoutRequest_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_sp_AuthnRequest_s=0; /* handle for zx_ctx */
static int le_swig__p_zx_ns_s=0; /* handle for zx_ns_s */
static int le_swig__p_p_zx_ns_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_xasp_XACMLAuthzDecisionQuery_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_di_Query_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_dap_ResultQuery_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_dap_Query_s=0; /* handle for zx_ns_s */
static int le_swig__p_unsigned_char=0; /* handle for zx_ns_s */
static int le_swig__p_zx_e_Header_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_root_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_sp_Status_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_sp_NewEncryptedID_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_sa_EncryptedID_s=0; /* handle for zx_ns_s */
static int le_swig__p_zx_xenc_EncryptedData_s=0; /* handle for zx_ns_s */
static int le_swig__p_zxid_cstr_list=0; /* handle for zxid_cstr_list */
static int le_swig__p_zx_tok=0; /* handle for zx_tok */
static int le_swig__p_zxsig_ref=0; /* handle for zxsig_ref */
static int le_swig__p_zxid_map=0; /* handle for zxid_map */
/* end vdecl subsection */
/* wrapper section */
ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_n_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_n_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_n_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_m_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_m_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_m_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->m = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_m_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_m_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->m);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_seen_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->seen = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->seen);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_n_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_seen_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->seen_n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_n_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_n_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->seen_n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_p_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_p_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_seen_p_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->seen_p = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_p_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_p_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->seen_p);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_pop_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_pop_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_seen_pop_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->seen_pop = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_seen_pop_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_seen_pop_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->seen_pop);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_inc_n_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_inc_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ns_s_inc_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->inc_n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_inc_n_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_inc_n_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->inc_n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_prefix_len_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_prefix_len_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->prefix_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_prefix_len_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_prefix_len_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (int) ((arg1)->prefix_len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_prefix_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_prefix_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->prefix) free((char*)arg1->prefix);
    if (arg2) {
      arg1->prefix = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->prefix,arg2);
    } else {
      arg1->prefix = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_prefix_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_prefix_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (char *) ((arg1)->prefix);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_url_len_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_url_len_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->url_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_url_len_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_url_len_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (int) ((arg1)->url_len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_url_set) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_url_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->url) free((char*)arg1->url);
    if (arg2) {
      arg1->url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->url,arg2);
    } else {
      arg1->url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ns_s_url_get) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ns_s_url_get. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (char *) ((arg1)->url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_ns_s) {
  struct zx_ns_s *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_ns_s *)(struct zx_ns_s *) calloc(1, sizeof(struct zx_ns_s));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_ns_s(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_ns_s TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_ns_s resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_base_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_base_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->base) free((char*)arg1->base);
    if (arg2) {
      arg1->base = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->base,arg2);
    } else {
      arg1->base = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_base_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_base_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (char *) ((arg1)->base);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_p_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_p_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->p) free((char*)arg1->p);
    if (arg2) {
      arg1->p = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->p,arg2);
    } else {
      arg1->p = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_p_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_p_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (char *) ((arg1)->p);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_lim_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_lim_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->lim) free((char*)arg1->lim);
    if (arg2) {
      arg1->lim = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->lim,arg2);
    } else {
      arg1->lim = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_lim_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_lim_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (char *) ((arg1)->lim);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_ns_tab_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_ns_tab_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_ns_tab_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->ns_tab = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_ns_tab_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_ns_tab_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->ns_tab);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_unknown_ns_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_unknown_ns_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_unknown_ns_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->unknown_ns = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_unknown_ns_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_unknown_ns_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->unknown_ns);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_guard_seen_n_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_guard_seen_n_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_guard_seen_n_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->guard_seen_n = *arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_guard_seen_n_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_guard_seen_n_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *)& ((arg1)->guard_seen_n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_guard_seen_p_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_guard_seen_p_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_guard_seen_p_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->guard_seen_p = *arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_guard_seen_p_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_guard_seen_p_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *)& ((arg1)->guard_seen_p);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_exclude_sig_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *arg2 = (void *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_exclude_sig_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, 0, 0) < 0) {
      /* Allow NULL from php for void* */
      if ((*args[1])->type==IS_NULL) arg2=0;
      else
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_exclude_sig_set. Expected SWIGTYPE_p_p_void");
    }
  }
  if (arg1) (arg1)->exclude_sig = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_exclude_sig_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_exclude_sig_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (void *) ((arg1)->exclude_sig);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_inc_ns_len_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_inc_ns_len_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_inc_ns_len_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->inc_ns_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_inc_ns_len_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_inc_ns_len_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->inc_ns_len);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_inc_ns_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_inc_ns_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_inc_ns_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->inc_ns = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_inc_ns_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_inc_ns_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->inc_ns);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_malloc_func_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*arg2)(size_t) = (void *(*)(size_t)) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_malloc_func_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_f_size_t__p_void, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_malloc_func_set. Expected SWIGTYPE_p_f_size_t__p_void");
    }
  }
  if (arg1) (arg1)->malloc_func = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_malloc_func_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*result)(size_t) = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_malloc_func_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (void *(*)(size_t)) ((arg1)->malloc_func);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_f_size_t__p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_realloc_func_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*arg2)(void *,size_t) = (void *(*)(void *,size_t)) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_realloc_func_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_f_p_void_size_t__p_void, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_realloc_func_set. Expected SWIGTYPE_p_f_p_void_size_t__p_void");
    }
  }
  if (arg1) (arg1)->realloc_func = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_realloc_func_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *(*result)(void *,size_t) = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_realloc_func_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (void *(*)(void *,size_t)) ((arg1)->realloc_func);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_f_p_void_size_t__p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_free_func_set) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void (*arg2)(void *) = (void (*)(void *)) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_free_func_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_f_p_void__void, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_ctx_free_func_set. Expected SWIGTYPE_p_f_p_void__void");
    }
  }
  if (arg1) (arg1)->free_func = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ctx_free_func_get) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void (*result)(void *) = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ctx_free_func_get. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (void (*)(void *)) ((arg1)->free_func);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_f_p_void__void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_ctx) {
  struct zx_ctx *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_ctx *)(struct zx_ctx *) calloc(1, sizeof(struct zx_ctx));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ctx, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_ctx(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_ctx TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_ctx resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_n_set) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  struct zx_node_s *arg2 = (struct zx_node_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_n_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_node_s_n_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_n_get) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  struct zx_node_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_n_get. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  result = (struct zx_node_s *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_node_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_wo_set) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  struct zx_node_s *arg2 = (struct zx_node_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_wo_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_node_s_wo_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  if (arg1) (arg1)->wo = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_wo_get) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  struct zx_node_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_wo_get. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  result = (struct zx_node_s *) ((arg1)->wo);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_node_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_ns_set) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_ns_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_node_s_ns_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->ns = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_ns_get) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_ns_get. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->ns);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_tok_set) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  short arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_tok_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (short) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->tok = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_tok_get) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  short result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_tok_get. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  result = (short) ((arg1)->tok);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_err_set) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  short arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_err_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (short) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->err = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_node_s_err_get) {
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  short result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_node_s_err_get. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  result = (short) ((arg1)->err);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_node_s) {
  struct zx_node_s *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_node_s *)(struct zx_node_s *) calloc(1, sizeof(struct zx_node_s));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_node_s, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_node_s(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_node_s *arg1 = (struct zx_node_s *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_node_s TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_node_s resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_g_set) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_node_s *arg2 = (struct zx_node_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_g_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_elem_s_g_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  if (arg1) (arg1)->g = *arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_g_get) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_node_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_g_get. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (struct zx_node_s *)& ((arg1)->g);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_node_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_kids_set) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_kids_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_elem_s_kids_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  if (arg1) (arg1)->kids = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_kids_get) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_kids_get. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (struct zx_elem_s *) ((arg1)->kids);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_any_attr_set) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_any_attr_s *arg2 = (struct zx_any_attr_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_any_attr_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_elem_s_any_attr_set. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  if (arg1) (arg1)->any_attr = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_any_attr_get) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_any_attr_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_any_attr_get. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (struct zx_any_attr_s *) ((arg1)->any_attr);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_any_attr_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_any_elem_set) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_any_elem_s *arg2 = (struct zx_any_elem_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_any_elem_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_elem_s_any_elem_set. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  if (arg1) (arg1)->any_elem = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_any_elem_get) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_any_elem_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_any_elem_get. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (struct zx_any_elem_s *) ((arg1)->any_elem);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_any_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_xmlns_set) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_xmlns_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_elem_s_xmlns_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->xmlns = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_xmlns_get) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_xmlns_get. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (struct zx_str *) ((arg1)->xmlns);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_content_set) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_content_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_elem_s_content_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->content = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_elem_s_content_get) {
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_elem_s_content_get. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (struct zx_str *) ((arg1)->content);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_elem_s) {
  struct zx_elem_s *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_elem_s *)(struct zx_elem_s *) calloc(1, sizeof(struct zx_elem_s));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_elem_s(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_elem_s *arg1 = (struct zx_elem_s *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_elem_s TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_elem_s resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_new_simple_elem) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_new_simple_elem. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_new_simple_elem. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_elem_s *)zx_new_simple_elem(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ref_len_simple_elem) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ref_len_simple_elem. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    arg2 = Z_STRLEN_PP(args[1]);
    arg3 = Z_STRVAL_PP(args[1]);
  }
  result = (struct zx_elem_s *)zx_ref_len_simple_elem(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ref_simple_elem) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ref_simple_elem. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_elem_s *)zx_ref_simple_elem(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dup_len_simple_elem) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dup_len_simple_elem. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    arg2 = Z_STRLEN_PP(args[1]);
    arg3 = Z_STRVAL_PP(args[1]);
  }
  result = (struct zx_elem_s *)zx_dup_len_simple_elem(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dup_simple_elem) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dup_simple_elem. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_elem_s *)zx_dup_simple_elem(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_g_set) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  struct zx_node_s *arg2 = (struct zx_node_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_g_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_node_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_str_g_set. Expected SWIGTYPE_p_zx_node_s");
    }
  }
  if (arg1) (arg1)->g = *arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_g_get) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  struct zx_node_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_g_get. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_node_s *)& ((arg1)->g);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_node_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_len_set) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_len_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_len_get) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_len_get. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (int) ((arg1)->len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_s_set) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_s_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->s) free((char*)arg1->s);
    if (arg2) {
      arg1->s = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->s,arg2);
    } else {
      arg1->s = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_s_get) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_s_get. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (char *) ((arg1)->s);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_str) {
  struct zx_str *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_str *)(struct zx_str *) calloc(1, sizeof(struct zx_str));
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_str(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_str TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_str resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_ref_str) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ref_str. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_ref_str(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_ref_len_str) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_ref_len_str. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    arg2 = Z_STRLEN_PP(args[1]);
    arg3 = Z_STRVAL_PP(args[1]);
  }
  result = (struct zx_str *)zx_ref_len_str(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_new_len_str) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_new_len_str. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_new_len_str(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dup_str) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dup_str. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_dup_str(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dup_len_str) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dup_len_str. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    arg2 = Z_STRLEN_PP(args[1]);
    arg3 = Z_STRVAL_PP(args[1]);
  }
  result = (struct zx_str *)zx_dup_len_str(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_alloc_sprintf) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int *arg2 = (int *) 0 ;
  char *arg3 = (char *) 0 ;
  void *arg4 = 0 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_alloc_sprintf. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_alloc_sprintf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)zx_alloc_sprintf(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_strf) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  void *arg3 = 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_strf. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_strf(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_free) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_free. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_str_free. Expected SWIGTYPE_p_zx_str");
    }
  }
  zx_str_free(arg1,arg2);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_to_c) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_to_c. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_str_to_c. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (char *)zx_str_to_c(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_conv) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int *arg2 = (int *) 0 ;
  char **arg3 = (char **) 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_conv. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_str_conv. Expected SWIGTYPE_p_int");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zx_str_conv. Expected SWIGTYPE_p_p_char");
    }
  }
  zx_str_conv(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_str_ends_in) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_str_ends_in. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zx_str_ends_in(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_elem_s_gg_set) {
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_elem_s_gg_set. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_any_elem_s_gg_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  if (arg1) (arg1)->gg = *arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_elem_s_gg_get) {
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_elem_s_gg_get. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  result = (struct zx_elem_s *)& ((arg1)->gg);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_elem_s_name_len_set) {
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_elem_s_name_len_set. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->name_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_elem_s_name_len_get) {
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_elem_s_name_len_get. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  result = (int) ((arg1)->name_len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_elem_s_name_set) {
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_elem_s_name_set. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->name) free((char*)arg1->name);
    if (arg2) {
      arg1->name = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->name,arg2);
    } else {
      arg1->name = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_elem_s_name_get) {
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_elem_s_name_get. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  result = (char *) ((arg1)->name);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_any_elem_s) {
  struct zx_any_elem_s *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_any_elem_s *)(struct zx_any_elem_s *) calloc(1, sizeof(struct zx_any_elem_s));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_any_elem_s, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_any_elem_s(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_any_elem_s *arg1 = (struct zx_any_elem_s *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_any_elem_s TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_any_elem_s resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_attr_s_ss_set) {
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_attr_s_ss_set. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_any_attr_s_ss_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->ss = *arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_attr_s_ss_get) {
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_attr_s_ss_get. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  result = (struct zx_str *)& ((arg1)->ss);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_attr_s_name_len_set) {
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_attr_s_name_len_set. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->name_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_attr_s_name_len_get) {
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_attr_s_name_len_get. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  result = (int) ((arg1)->name_len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_attr_s_name_set) {
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_attr_s_name_set. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->name) free((char*)arg1->name);
    if (arg2) {
      arg1->name = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->name,arg2);
    } else {
      arg1->name = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_any_attr_s_name_get) {
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_any_attr_s_name_get. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  result = (char *) ((arg1)->name);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_any_attr_s) {
  struct zx_any_attr_s *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_any_attr_s *)(struct zx_any_attr_s *) calloc(1, sizeof(struct zx_any_attr_s));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_any_attr_s, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_any_attr_s(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_any_attr_s *arg1 = (struct zx_any_attr_s *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_any_attr_s TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_any_attr_s resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_memmem) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (char *)zx_memmem(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_alloc) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  void *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_alloc. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (void *)zx_alloc(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_zalloc) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  void *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_zalloc. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (void *)zx_zalloc(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_free) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  void *arg2 = (void *) 0 ;
  void *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_free. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, 0, 0) < 0) {
      /* Allow NULL from php for void* */
      if ((*args[1])->type==IS_NULL) arg2=0;
      else
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_free. Expected SWIGTYPE_p_p_void");
    }
  }
  result = (void *)zx_free(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dup_cstr) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dup_cstr. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (char *)zx_dup_cstr(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_reset_ctx) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_reset_ctx. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  zx_reset_ctx(arg1);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_init_ctx) {
  struct zx_ctx *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_ctx *)zx_init_ctx();
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ctx, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_name_set) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_name_set. Expected SWIGTYPE_p_zx_tok");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg2) {
      arg1->name = (char const *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->name,arg2);
    } else {
      arg1->name = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_name_get) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_name_get. Expected SWIGTYPE_p_zx_tok");
    }
  }
  result = (char *) ((arg1)->name);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_prefix_set) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_prefix_set. Expected SWIGTYPE_p_zx_tok");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg2) {
      arg1->prefix = (char const *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->prefix,arg2);
    } else {
      arg1->prefix = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_prefix_get) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_prefix_get. Expected SWIGTYPE_p_zx_tok");
    }
  }
  result = (char *) ((arg1)->prefix);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_ns_set) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_ns_set. Expected SWIGTYPE_p_zx_tok");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_tok_ns_set. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  if (arg1) (arg1)->ns = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_ns_get) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_ns_get. Expected SWIGTYPE_p_zx_tok");
    }
  }
  result = (struct zx_ns_s *) ((arg1)->ns);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zx_tok) {
  struct zx_tok *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zx_tok *)(struct zx_tok *) calloc(1, sizeof(struct zx_tok));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_tok, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zx_tok(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zx_tok TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zx_tok resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zx_date_time_to_secs) {
  char *arg1 = (char *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (int)zx_date_time_to_secs(arg1);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_write2_or_append_lock_c_path) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  int arg8 ;
  int result;
  zval **args[8];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 8) || (zend_get_parameters_array_ex(8, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[6]);
    arg7 = (int) Z_LVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[7]);
    arg8 = (int) Z_LVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  result = (int)write2_or_append_lock_c_path(arg1,arg2,arg3,arg4,arg5,(char const *)arg6,arg7,arg8);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_report_openssl_error) {
  char *arg1 = (char *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (int)zx_report_openssl_error((char const *)arg1);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_fix_any_elem_dec) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_any_elem_s *arg2 = (struct zx_any_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_fix_any_elem_dec. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_any_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_fix_any_elem_dec. Expected SWIGTYPE_p_zx_any_elem_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  zx_fix_any_elem_dec(arg1,arg2,arg3,arg4);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_locate_ns_by_prefix) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_locate_ns_by_prefix. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zx_ns_s *)zx_locate_ns_by_prefix(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_is_ns_prefix) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_is_ns_prefix. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zx_is_ns_prefix(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_prefix_seen) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_prefix_seen. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zx_ns_s *)zx_prefix_seen(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_prefix_seen_whine) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  struct zx_ns_s *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_prefix_seen_whine. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (struct zx_ns_s *)zx_prefix_seen_whine(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_scan_xmlns) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_scan_xmlns. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (struct zx_ns_s *)zx_scan_xmlns(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ns_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_pop_seen) {
  struct zx_ns_s *arg1 = (struct zx_ns_s *) 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_pop_seen. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  zx_pop_seen(arg1);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_raw_cipher) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  int arg5 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  char *arg8 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[7];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 7) || (zend_get_parameters_array_ex(7, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_raw_cipher. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zx_raw_cipher. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    arg5 = Z_STRLEN_PP(args[4]);
    arg6 = Z_STRVAL_PP(args[4]);
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg7 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg8 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_raw_cipher(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_rsa_pub_enc) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void **arg3 = (void **) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  void *ptr3 ;
  int force3 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_rsa_pub_enc. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_rsa_pub_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* If they pass NULL by reference, make it into a void*
         This bit should go in arginit if arginit support init-ing scripting args */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_void, 0) < 0) {
      /* So... we didn't get a ref or ptr, but we'll accept NULL by reference */
      if (!((*args[2])->type==IS_NULL && PZVAL_IS_REF(*args[2]))) {
        /* wasn't a pre/ref/thing, OR anything like an int thing */
        SWIG_PHP_Error(E_ERROR, "Type error in argument $arg of zx_rsa_pub_enc.");
      }
    }
    force3=0;
    if (arg1==NULL) {
      ptr3=(void *) calloc(1,sizeof(void *));
      
      arg3=&ptr3;
      /* have to passback arg$arg too */
      force3=1;
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_rsa_pub_enc(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  {
    if (force3) {
      SWIG_SetPointerZval( *args[2], (void*) ptr3, SWIGTYPE_p_void, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_rsa_pub_dec) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void **arg3 = (void **) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  void *ptr3 ;
  int force3 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_rsa_pub_dec. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_rsa_pub_dec. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* If they pass NULL by reference, make it into a void*
         This bit should go in arginit if arginit support init-ing scripting args */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_void, 0) < 0) {
      /* So... we didn't get a ref or ptr, but we'll accept NULL by reference */
      if (!((*args[2])->type==IS_NULL && PZVAL_IS_REF(*args[2]))) {
        /* wasn't a pre/ref/thing, OR anything like an int thing */
        SWIG_PHP_Error(E_ERROR, "Type error in argument $arg of zx_rsa_pub_dec.");
      }
    }
    force3=0;
    if (arg1==NULL) {
      ptr3=(void *) calloc(1,sizeof(void *));
      
      arg3=&ptr3;
      /* have to passback arg$arg too */
      force3=1;
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_rsa_pub_dec(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  {
    if (force3) {
      SWIG_SetPointerZval( *args[2], (void*) ptr3, SWIGTYPE_p_void, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_rsa_priv_dec) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void **arg3 = (void **) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  void *ptr3 ;
  int force3 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_rsa_priv_dec. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_rsa_priv_dec. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* If they pass NULL by reference, make it into a void*
         This bit should go in arginit if arginit support init-ing scripting args */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_void, 0) < 0) {
      /* So... we didn't get a ref or ptr, but we'll accept NULL by reference */
      if (!((*args[2])->type==IS_NULL && PZVAL_IS_REF(*args[2]))) {
        /* wasn't a pre/ref/thing, OR anything like an int thing */
        SWIG_PHP_Error(E_ERROR, "Type error in argument $arg of zx_rsa_priv_dec.");
      }
    }
    force3=0;
    if (arg1==NULL) {
      ptr3=(void *) calloc(1,sizeof(void *));
      
      arg3=&ptr3;
      /* have to passback arg$arg too */
      force3=1;
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_rsa_priv_dec(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  {
    if (force3) {
      SWIG_SetPointerZval( *args[2], (void*) ptr3, SWIGTYPE_p_void, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_rsa_priv_enc) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  void **arg3 = (void **) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  void *ptr3 ;
  int force3 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_rsa_priv_enc. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_rsa_priv_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* If they pass NULL by reference, make it into a void*
         This bit should go in arginit if arginit support init-ing scripting args */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_void, 0) < 0) {
      /* So... we didn't get a ref or ptr, but we'll accept NULL by reference */
      if (!((*args[2])->type==IS_NULL && PZVAL_IS_REF(*args[2]))) {
        /* wasn't a pre/ref/thing, OR anything like an int thing */
        SWIG_PHP_Error(E_ERROR, "Type error in argument $arg of zx_rsa_priv_enc.");
      }
    }
    force3=0;
    if (arg1==NULL) {
      ptr3=(void *) calloc(1,sizeof(void *));
      
      arg3=&ptr3;
      /* have to passback arg$arg too */
      force3=1;
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_rsa_priv_enc(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  {
    if (force3) {
      SWIG_SetPointerZval( *args[2], (void*) ptr3, SWIGTYPE_p_void, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_get_rsa_pub_from_cert) {
  X509 *arg1 = (X509 *) 0 ;
  char *arg2 = (char *) 0 ;
  void **result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_get_rsa_pub_from_cert. Expected SWIGTYPE_p_X509");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (void **)zx_get_rsa_pub_from_cert(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_rand) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  zx_rand(arg1,arg2);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_tok_by_ns) {
  struct zx_tok *arg1 = (struct zx_tok *) 0 ;
  struct zx_tok *arg2 = (struct zx_tok *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  struct zx_ns_s *arg5 = (struct zx_ns_s *) 0 ;
  struct zx_tok *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_tok_by_ns. Expected SWIGTYPE_p_zx_tok");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_tok, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_tok_by_ns. Expected SWIGTYPE_p_zx_tok");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zx_tok_by_ns. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (struct zx_tok *)zx_tok_by_ns((struct zx_tok const *)arg1,(struct zx_tok const *)arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_tok, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_len_xmlns_if_not_seen) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s **arg3 = (struct zx_ns_s **) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_len_xmlns_if_not_seen. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_len_xmlns_if_not_seen. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zx_len_xmlns_if_not_seen. Expected SWIGTYPE_p_p_zx_ns_s");
    }
  }
  result = (int)zx_len_xmlns_if_not_seen(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_enc_xmlns_if_not_seen) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_ns_s *arg3 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s **arg4 = (struct zx_ns_s **) 0 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_enc_xmlns_if_not_seen. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zx_enc_xmlns_if_not_seen. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zx_enc_xmlns_if_not_seen. Expected SWIGTYPE_p_p_zx_ns_s");
    }
  }
  result = (char *)zx_enc_xmlns_if_not_seen(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_add_xmlns_if_not_seen) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  struct zx_ns_s **arg3 = (struct zx_ns_s **) 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_add_xmlns_if_not_seen. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_add_xmlns_if_not_seen. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zx_add_xmlns_if_not_seen. Expected SWIGTYPE_p_p_zx_ns_s");
    }
  }
  zx_add_xmlns_if_not_seen(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_enc_seen) {
  char *arg1 = (char *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_enc_seen. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  result = (char *)zx_enc_seen(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_len_so_common) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_len_so_common. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_len_so_common. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (int)zx_len_so_common(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_len_wo_common) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_len_wo_common. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_len_wo_common. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (int)zx_len_wo_common(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_enc_unknown_attrs) {
  char *arg1 = (char *) 0 ;
  struct zx_any_attr_s *arg2 = (struct zx_any_attr_s *) 0 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_any_attr_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_enc_unknown_attrs. Expected SWIGTYPE_p_zx_any_attr_s");
    }
  }
  result = (char *)zx_enc_unknown_attrs(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_enc_so_unknown_elems_and_content) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_elem_s *arg3 = (struct zx_elem_s *) 0 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_enc_so_unknown_elems_and_content. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zx_enc_so_unknown_elems_and_content. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (char *)zx_enc_so_unknown_elems_and_content(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_easy_enc_common) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_easy_enc_common. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_easy_enc_common(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_attr_so_len) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_attr_so_len. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)zx_attr_so_len(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_attr_so_enc) {
  char *arg1 = (char *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_attr_so_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (char *)zx_attr_so_enc(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_attr_wo_len) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int arg2 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_attr_wo_len. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)zx_attr_wo_len(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_attr_wo_enc) {
  char *arg1 = (char *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_attr_wo_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (char *)zx_attr_wo_enc(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_free_attr) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  int arg3 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_free_attr. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_free_attr. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  zx_free_attr(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_free_elem_common) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_free_elem_common. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_free_elem_common. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  zx_free_elem_common(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_free_simple_elems) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int arg3 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_free_simple_elems. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_free_simple_elems. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  zx_free_simple_elems(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_prepare_dec_ctx) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s *arg2 = (struct zx_ns_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_prepare_dec_ctx. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_prepare_dec_ctx. Expected SWIGTYPE_p_zx_ns_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  zx_prepare_dec_ctx(arg1,arg2,arg3,arg4);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_scan_data) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_scan_data. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_scan_data. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  result = (int)zx_scan_data(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_scan_pi_or_comment) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_scan_pi_or_comment. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  result = (int)zx_scan_pi_or_comment(arg1);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dec_unknown_attr) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  int arg6 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dec_unknown_attr. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_dec_unknown_attr. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zx_dec_unknown_attr(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_dec_attr_val) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char **arg2 = (char **) 0 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_dec_attr_val. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_dec_attr_val. Expected SWIGTYPE_p_p_char");
    }
  }
  result = (char *)zx_dec_attr_val(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_xml_parse_err) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_xml_parse_err. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  zx_xml_parse_err(arg1,arg2,(char const *)arg3,(char const *)arg4);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_len_inc_ns) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s **arg2 = (struct zx_ns_s **) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_len_inc_ns. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_len_inc_ns. Expected SWIGTYPE_p_p_zx_ns_s");
    }
  }
  result = (int)zx_len_inc_ns(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_add_inc_ns) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  struct zx_ns_s **arg2 = (struct zx_ns_s **) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_add_inc_ns. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zx_add_inc_ns. Expected SWIGTYPE_p_p_zx_ns_s");
    }
  }
  zx_add_inc_ns(arg1,arg2);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_enc_inc_ns) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_ns_s **arg3 = (struct zx_ns_s **) 0 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_enc_inc_ns. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_zx_ns_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zx_enc_inc_ns. Expected SWIGTYPE_p_p_zx_ns_s");
    }
  }
  result = (char *)zx_enc_inc_ns(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_magic_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  unsigned int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_magic_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (unsigned int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->magic = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_magic_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  unsigned int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_magic_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (unsigned int) ((arg1)->magic);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ctx_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_ctx *arg2 = (struct zx_ctx *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ctx_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_ctx_set. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  if (arg1) (arg1)->ctx = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ctx_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_ctx *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ctx_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_ctx *) ((arg1)->ctx);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ctx, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_cot_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_cot_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_cot_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  if (arg1) (arg1)->cot = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_cot_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_cot_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_entity *) ((arg1)->cot);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_path_supplied_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_path_supplied_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->path_supplied = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_path_supplied_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_path_supplied_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->path_supplied);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_path_len_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_path_len_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->path_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_path_len_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_path_len_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->path_len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_path_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_path_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->path) free((char*)arg1->path);
    if (arg2) {
      arg1->path = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->path,arg2);
    } else {
      arg1->path = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_path_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_path_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->path);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_url_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_url_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->url) free((char*)arg1->url);
    if (arg2) {
      arg1->url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->url,arg2);
    } else {
      arg1->url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_url_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_url_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_non_standard_entityid_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_non_standard_entityid_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->non_standard_entityid) free((char*)arg1->non_standard_entityid);
    if (arg2) {
      arg1->non_standard_entityid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->non_standard_entityid,arg2);
    } else {
      arg1->non_standard_entityid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_non_standard_entityid_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_non_standard_entityid_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->non_standard_entityid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redirect_hack_imposed_url_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redirect_hack_imposed_url_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->redirect_hack_imposed_url) free((char*)arg1->redirect_hack_imposed_url);
    if (arg2) {
      arg1->redirect_hack_imposed_url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->redirect_hack_imposed_url,arg2);
    } else {
      arg1->redirect_hack_imposed_url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redirect_hack_imposed_url_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redirect_hack_imposed_url_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->redirect_hack_imposed_url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redirect_hack_zxid_url_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redirect_hack_zxid_url_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->redirect_hack_zxid_url) free((char*)arg1->redirect_hack_zxid_url);
    if (arg2) {
      arg1->redirect_hack_zxid_url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->redirect_hack_zxid_url,arg2);
    } else {
      arg1->redirect_hack_zxid_url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redirect_hack_zxid_url_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redirect_hack_zxid_url_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->redirect_hack_zxid_url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redirect_hack_zxid_qs_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redirect_hack_zxid_qs_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->redirect_hack_zxid_qs) free((char*)arg1->redirect_hack_zxid_qs);
    if (arg2) {
      arg1->redirect_hack_zxid_qs = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->redirect_hack_zxid_qs,arg2);
    } else {
      arg1->redirect_hack_zxid_qs = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redirect_hack_zxid_qs_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redirect_hack_zxid_qs_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->redirect_hack_zxid_qs);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_cdc_url_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_cdc_url_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->cdc_url) free((char*)arg1->cdc_url);
    if (arg2) {
      arg1->cdc_url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->cdc_url,arg2);
    } else {
      arg1->cdc_url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_cdc_url_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_cdc_url_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->cdc_url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_cdc_choice_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_cdc_choice_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->cdc_choice = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_cdc_choice_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_cdc_choice_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->cdc_choice);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_fetch_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_fetch_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->md_fetch = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_fetch_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_fetch_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->md_fetch);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_populate_cache_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_populate_cache_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->md_populate_cache = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_populate_cache_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_populate_cache_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->md_populate_cache);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_cache_first_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_cache_first_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->md_cache_first = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_cache_first_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_cache_first_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->md_cache_first);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_cache_last_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_cache_last_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->md_cache_last = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_md_cache_last_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_md_cache_last_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->md_cache_last);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_auto_cert_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_auto_cert_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->auto_cert = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_auto_cert_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_auto_cert_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->auto_cert);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_user_local_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_user_local_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->user_local = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_user_local_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_user_local_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->user_local);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_ena_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_ena_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->idp_ena = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_ena_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_ena_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->idp_ena);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_pdp_ena_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_pdp_ena_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->pdp_ena = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_pdp_ena_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_pdp_ena_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->pdp_ena);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_want_authn_req_signed_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_want_authn_req_signed_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->want_authn_req_signed = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_want_authn_req_signed_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_want_authn_req_signed_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->want_authn_req_signed);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_authn_req_sign_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_authn_req_sign_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->authn_req_sign = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_authn_req_sign_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_authn_req_sign_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->authn_req_sign);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_want_sso_a7n_signed_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_want_sso_a7n_signed_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->want_sso_a7n_signed = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_want_sso_a7n_signed_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_want_sso_a7n_signed_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->want_sso_a7n_signed);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sso_soap_sign_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sso_soap_sign_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->sso_soap_sign = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sso_soap_sign_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sso_soap_sign_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->sso_soap_sign);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sso_soap_resp_sign_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sso_soap_resp_sign_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->sso_soap_resp_sign = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sso_soap_resp_sign_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sso_soap_resp_sign_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->sso_soap_resp_sign);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sso_sign_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sso_sign_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->sso_sign = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sso_sign_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sso_sign_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->sso_sign);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_nameid_enc_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_nameid_enc_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->nameid_enc = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_nameid_enc_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_nameid_enc_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->nameid_enc);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_post_a7n_enc_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_post_a7n_enc_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->post_a7n_enc = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_post_a7n_enc_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_post_a7n_enc_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->post_a7n_enc);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_affiliation_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_affiliation_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->affiliation) free((char*)arg1->affiliation);
    if (arg2) {
      arg1->affiliation = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->affiliation,arg2);
    } else {
      arg1->affiliation = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_affiliation_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_affiliation_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->affiliation);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_nice_name_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_nice_name_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->nice_name) free((char*)arg1->nice_name);
    if (arg2) {
      arg1->nice_name = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->nice_name,arg2);
    } else {
      arg1->nice_name = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_nice_name_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_nice_name_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->nice_name);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ses_arch_dir_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ses_arch_dir_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ses_arch_dir) free((char*)arg1->ses_arch_dir);
    if (arg2) {
      arg1->ses_arch_dir = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ses_arch_dir,arg2);
    } else {
      arg1->ses_arch_dir = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ses_arch_dir_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ses_arch_dir_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->ses_arch_dir);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ses_cookie_name_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ses_cookie_name_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ses_cookie_name) free((char*)arg1->ses_cookie_name);
    if (arg2) {
      arg1->ses_cookie_name = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ses_cookie_name,arg2);
    } else {
      arg1->ses_cookie_name = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ses_cookie_name_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ses_cookie_name_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->ses_cookie_name);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ipport_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ipport_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ipport) free((char*)arg1->ipport);
    if (arg2) {
      arg1->ipport = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ipport,arg2);
    } else {
      arg1->ipport = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_ipport_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_ipport_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->ipport);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_err_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_err_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_err = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_err_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_err_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_err);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_act_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_act_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_act = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_act_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_act_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_act);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_issue_a7n_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_issue_a7n_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_issue_a7n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_issue_a7n_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_issue_a7n_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_issue_a7n);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_issue_msg_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_issue_msg_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_issue_msg = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_issue_msg_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_issue_msg_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_issue_msg);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_rely_a7n_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_rely_a7n_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_rely_a7n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_rely_a7n_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_rely_a7n_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_rely_a7n);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_rely_msg_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_rely_msg_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_rely_msg = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_rely_msg_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_rely_msg_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_rely_msg);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_err_in_act_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_err_in_act_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_err_in_act = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_err_in_act_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_err_in_act_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_err_in_act);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_act_in_err_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_act_in_err_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_act_in_err = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_act_in_err_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_act_in_err_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_act_in_err);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_sigfail_is_err_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_sigfail_is_err_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_sigfail_is_err = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_sigfail_is_err_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_sigfail_is_err_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_sigfail_is_err);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_level_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_level_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->log_level = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_log_level_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_log_level_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->log_level);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sig_fatal_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sig_fatal_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->sig_fatal = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_sig_fatal_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_sig_fatal_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->sig_fatal);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_nosig_fatal_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_nosig_fatal_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->nosig_fatal = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_nosig_fatal_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_nosig_fatal_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->nosig_fatal);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_msg_sig_ok_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_msg_sig_ok_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->msg_sig_ok = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_msg_sig_ok_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_msg_sig_ok_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->msg_sig_ok);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_timeout_fatal_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_timeout_fatal_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->timeout_fatal = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_timeout_fatal_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_timeout_fatal_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->timeout_fatal);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_audience_fatal_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_audience_fatal_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->audience_fatal = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_audience_fatal_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_audience_fatal_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->audience_fatal);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_dup_a7n_fatal_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_dup_a7n_fatal_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->dup_a7n_fatal = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_dup_a7n_fatal_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_dup_a7n_fatal_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->dup_a7n_fatal);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_dup_msg_fatal_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_dup_msg_fatal_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->dup_msg_fatal = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_dup_msg_fatal_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_dup_msg_fatal_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->dup_msg_fatal);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redir_to_content_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redir_to_content_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->redir_to_content = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_redir_to_content_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_redir_to_content_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->redir_to_content);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_remote_user_ena_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_remote_user_ena_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->remote_user_ena = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_remote_user_ena_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_remote_user_ena_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char) ((arg1)->remote_user_ena);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_anon_ok_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_anon_ok_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->anon_ok) free((char*)arg1->anon_ok);
    if (arg2) {
      arg1->anon_ok = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->anon_ok,arg2);
    } else {
      arg1->anon_ok = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_anon_ok_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_anon_ok_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->anon_ok);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_required_authnctx_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char **arg2 = (char **) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_required_authnctx_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_required_authnctx_set. Expected SWIGTYPE_p_p_char");
    }
  }
  if (arg1) (arg1)->required_authnctx = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_required_authnctx_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char **result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_required_authnctx_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char **) ((arg1)->required_authnctx);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_char, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_issue_authnctx_pw_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_issue_authnctx_pw_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->issue_authnctx_pw) free((char*)arg1->issue_authnctx_pw);
    if (arg2) {
      arg1->issue_authnctx_pw = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->issue_authnctx_pw,arg2);
    } else {
      arg1->issue_authnctx_pw = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_issue_authnctx_pw_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_issue_authnctx_pw_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->issue_authnctx_pw);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_pref_acs_binding_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_pref_acs_binding_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_pref_acs_binding) free((char*)arg1->idp_pref_acs_binding);
    if (arg2) {
      arg1->idp_pref_acs_binding = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_pref_acs_binding,arg2);
    } else {
      arg1->idp_pref_acs_binding = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_pref_acs_binding_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_pref_acs_binding_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_pref_acs_binding);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_before_slop_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_before_slop_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->before_slop = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_before_slop_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_before_slop_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->before_slop);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_after_slop_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_after_slop_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->after_slop = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_after_slop_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_after_slop_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->after_slop);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_timeskew_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_timeskew_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->timeskew = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_timeskew_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_timeskew_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->timeskew);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_a7nttl_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_a7nttl_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->a7nttl = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_a7nttl_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_a7nttl_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->a7nttl);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_pdp_url_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_pdp_url_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->pdp_url) free((char*)arg1->pdp_url);
    if (arg2) {
      arg1->pdp_url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->pdp_url,arg2);
    } else {
      arg1->pdp_url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_pdp_url_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_pdp_url_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->pdp_url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_need_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_need_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_need_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  if (arg1) (arg1)->need = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_need_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_need_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_need *) ((arg1)->need);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_need, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_want_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_want_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_want_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  if (arg1) (arg1)->want = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_want_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_want_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_need *) ((arg1)->want);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_need, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_attrsrc_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_atsrc *arg2 = (struct zxid_atsrc *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_attrsrc_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_attrsrc_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  if (arg1) (arg1)->attrsrc = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_attrsrc_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_atsrc *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_attrsrc_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_atsrc *) ((arg1)->attrsrc);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_atsrc, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_inmap_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_inmap_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_inmap_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  if (arg1) (arg1)->inmap = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_inmap_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_inmap_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_map *) ((arg1)->inmap);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_outmap_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_outmap_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_outmap_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  if (arg1) (arg1)->outmap = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_outmap_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_outmap_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_map *) ((arg1)->outmap);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_pepmap_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_pepmap_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_pepmap_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  if (arg1) (arg1)->pepmap = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_pepmap_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_pepmap_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_map *) ((arg1)->pepmap);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_role_permit_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_role_permit_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_localpdp_role_permit_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  if (arg1) (arg1)->localpdp_role_permit = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_role_permit_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_role_permit_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_role_permit);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_role_deny_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_role_deny_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_localpdp_role_deny_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  if (arg1) (arg1)->localpdp_role_deny = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_role_deny_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_role_deny_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_role_deny);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_idpnid_permit_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_idpnid_permit_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_localpdp_idpnid_permit_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  if (arg1) (arg1)->localpdp_idpnid_permit = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_idpnid_permit_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_idpnid_permit_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_idpnid_permit);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_idpnid_deny_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_idpnid_deny_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_conf_localpdp_idpnid_deny_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  if (arg1) (arg1)->localpdp_idpnid_deny = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_localpdp_idpnid_deny_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_localpdp_idpnid_deny_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_cstr_list *) ((arg1)->localpdp_idpnid_deny);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_max_soap_retry_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_max_soap_retry_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->max_soap_retry = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_max_soap_retry_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_max_soap_retry_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (int) ((arg1)->max_soap_retry);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_defaultqs_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_defaultqs_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->defaultqs) free((char*)arg1->defaultqs);
    if (arg2) {
      arg1->defaultqs = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->defaultqs,arg2);
    } else {
      arg1->defaultqs = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_defaultqs_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_defaultqs_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->defaultqs);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mod_saml_attr_prefix_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mod_saml_attr_prefix_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->mod_saml_attr_prefix) free((char*)arg1->mod_saml_attr_prefix);
    if (arg2) {
      arg1->mod_saml_attr_prefix = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->mod_saml_attr_prefix,arg2);
    } else {
      arg1->mod_saml_attr_prefix = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mod_saml_attr_prefix_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mod_saml_attr_prefix_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->mod_saml_attr_prefix);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_page_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_page_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_page) free((char*)arg1->idp_sel_page);
    if (arg2) {
      arg1->idp_sel_page = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_page,arg2);
    } else {
      arg1->idp_sel_page = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_page_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_page_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_page);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_start_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_start_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_start) free((char*)arg1->idp_sel_start);
    if (arg2) {
      arg1->idp_sel_start = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_start,arg2);
    } else {
      arg1->idp_sel_start = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_start_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_start_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_start);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_new_idp_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_new_idp_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_new_idp) free((char*)arg1->idp_sel_new_idp);
    if (arg2) {
      arg1->idp_sel_new_idp = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_new_idp,arg2);
    } else {
      arg1->idp_sel_new_idp = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_new_idp_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_new_idp_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_new_idp);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_our_eid_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_our_eid_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_our_eid) free((char*)arg1->idp_sel_our_eid);
    if (arg2) {
      arg1->idp_sel_our_eid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_our_eid,arg2);
    } else {
      arg1->idp_sel_our_eid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_our_eid_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_our_eid_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_our_eid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_tech_user_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_tech_user_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_tech_user) free((char*)arg1->idp_sel_tech_user);
    if (arg2) {
      arg1->idp_sel_tech_user = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_tech_user,arg2);
    } else {
      arg1->idp_sel_tech_user = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_tech_user_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_tech_user_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_tech_user);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_tech_site_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_tech_site_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_tech_site) free((char*)arg1->idp_sel_tech_site);
    if (arg2) {
      arg1->idp_sel_tech_site = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_tech_site,arg2);
    } else {
      arg1->idp_sel_tech_site = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_tech_site_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_tech_site_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_tech_site);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_footer_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_footer_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_footer) free((char*)arg1->idp_sel_footer);
    if (arg2) {
      arg1->idp_sel_footer = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_footer,arg2);
    } else {
      arg1->idp_sel_footer = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_footer_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_footer_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_footer);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_end_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_end_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idp_sel_end) free((char*)arg1->idp_sel_end);
    if (arg2) {
      arg1->idp_sel_end = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idp_sel_end,arg2);
    } else {
      arg1->idp_sel_end = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_idp_sel_end_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_idp_sel_end_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->idp_sel_end);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_page_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_page_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_page) free((char*)arg1->an_page);
    if (arg2) {
      arg1->an_page = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_page,arg2);
    } else {
      arg1->an_page = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_page_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_page_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_page);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_start_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_start_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_start) free((char*)arg1->an_start);
    if (arg2) {
      arg1->an_start = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_start,arg2);
    } else {
      arg1->an_start = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_start_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_start_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_start);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_our_eid_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_our_eid_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_our_eid) free((char*)arg1->an_our_eid);
    if (arg2) {
      arg1->an_our_eid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_our_eid,arg2);
    } else {
      arg1->an_our_eid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_our_eid_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_our_eid_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_our_eid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_tech_user_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_tech_user_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_tech_user) free((char*)arg1->an_tech_user);
    if (arg2) {
      arg1->an_tech_user = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_tech_user,arg2);
    } else {
      arg1->an_tech_user = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_tech_user_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_tech_user_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_tech_user);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_tech_site_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_tech_site_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_tech_site) free((char*)arg1->an_tech_site);
    if (arg2) {
      arg1->an_tech_site = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_tech_site,arg2);
    } else {
      arg1->an_tech_site = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_tech_site_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_tech_site_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_tech_site);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_footer_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_footer_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_footer) free((char*)arg1->an_footer);
    if (arg2) {
      arg1->an_footer = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_footer,arg2);
    } else {
      arg1->an_footer = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_footer_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_footer_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_footer);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_end_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_end_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_end) free((char*)arg1->an_end);
    if (arg2) {
      arg1->an_end = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_end,arg2);
    } else {
      arg1->an_end = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_an_end_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_an_end_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->an_end);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_start_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_start_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->mgmt_start) free((char*)arg1->mgmt_start);
    if (arg2) {
      arg1->mgmt_start = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->mgmt_start,arg2);
    } else {
      arg1->mgmt_start = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_start_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_start_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->mgmt_start);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_logout_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_logout_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->mgmt_logout) free((char*)arg1->mgmt_logout);
    if (arg2) {
      arg1->mgmt_logout = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->mgmt_logout,arg2);
    } else {
      arg1->mgmt_logout = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_logout_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_logout_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->mgmt_logout);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_defed_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_defed_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->mgmt_defed) free((char*)arg1->mgmt_defed);
    if (arg2) {
      arg1->mgmt_defed = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->mgmt_defed,arg2);
    } else {
      arg1->mgmt_defed = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_defed_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_defed_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->mgmt_defed);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_footer_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_footer_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->mgmt_footer) free((char*)arg1->mgmt_footer);
    if (arg2) {
      arg1->mgmt_footer = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->mgmt_footer,arg2);
    } else {
      arg1->mgmt_footer = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_footer_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_footer_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->mgmt_footer);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_end_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_end_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->mgmt_end) free((char*)arg1->mgmt_end);
    if (arg2) {
      arg1->mgmt_end = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->mgmt_end,arg2);
    } else {
      arg1->mgmt_end = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_mgmt_end_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_mgmt_end_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->mgmt_end);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_dbg_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_dbg_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->dbg) free((char*)arg1->dbg);
    if (arg2) {
      arg1->dbg = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->dbg,arg2);
    } else {
      arg1->dbg = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_dbg_get) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_dbg_get. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (char *) ((arg1)->dbg);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_conf) {
  struct zxid_conf *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_conf *)(struct zxid_conf *) calloc(1, sizeof(struct zxid_conf));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_conf, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_conf(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_conf TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_conf resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_magic_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  unsigned int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_magic_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (unsigned int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->magic = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_magic_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  unsigned int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_magic_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (unsigned int) ((arg1)->magic);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_op_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_op_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->op = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_op_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_op_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char) ((arg1)->op);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_pr_ix_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_pr_ix_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->pr_ix = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_pr_ix_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_pr_ix_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char) ((arg1)->pr_ix);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_allow_create_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_allow_create_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->allow_create = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_allow_create_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_allow_create_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char) ((arg1)->allow_create);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_ispassive_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_ispassive_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->ispassive = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_ispassive_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_ispassive_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char) ((arg1)->ispassive);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_force_authn_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_force_authn_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->force_authn = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_force_authn_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_force_authn_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char) ((arg1)->force_authn);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_enc_hint_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_enc_hint_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->enc_hint = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_enc_hint_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_enc_hint_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char) ((arg1)->enc_hint);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sid_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sid_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sid) free((char*)arg1->sid);
    if (arg2) {
      arg1->sid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sid,arg2);
    } else {
      arg1->sid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sid_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sid_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->sid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_nid_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_nid_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->nid) free((char*)arg1->nid);
    if (arg2) {
      arg1->nid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->nid,arg2);
    } else {
      arg1->nid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_nid_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_nid_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->nid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_uid_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_uid_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->uid) free((char*)arg1->uid);
    if (arg2) {
      arg1->uid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->uid,arg2);
    } else {
      arg1->uid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_uid_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_uid_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->uid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_pw_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_pw_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->pw) free((char*)arg1->pw);
    if (arg2) {
      arg1->pw = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->pw,arg2);
    } else {
      arg1->pw = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_pw_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_pw_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->pw);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_ssoreq_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_ssoreq_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ssoreq) free((char*)arg1->ssoreq);
    if (arg2) {
      arg1->ssoreq = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ssoreq,arg2);
    } else {
      arg1->ssoreq = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_ssoreq_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_ssoreq_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->ssoreq);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_cdc_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_cdc_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->cdc) free((char*)arg1->cdc);
    if (arg2) {
      arg1->cdc = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->cdc,arg2);
    } else {
      arg1->cdc = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_cdc_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_cdc_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->cdc);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_eid_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_eid_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->eid) free((char*)arg1->eid);
    if (arg2) {
      arg1->eid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->eid,arg2);
    } else {
      arg1->eid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_eid_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_eid_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->eid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_nid_fmt_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_nid_fmt_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->nid_fmt) free((char*)arg1->nid_fmt);
    if (arg2) {
      arg1->nid_fmt = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->nid_fmt,arg2);
    } else {
      arg1->nid_fmt = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_nid_fmt_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_nid_fmt_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->nid_fmt);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_affil_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_affil_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->affil) free((char*)arg1->affil);
    if (arg2) {
      arg1->affil = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->affil,arg2);
    } else {
      arg1->affil = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_affil_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_affil_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->affil);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_consent_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_consent_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->consent) free((char*)arg1->consent);
    if (arg2) {
      arg1->consent = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->consent,arg2);
    } else {
      arg1->consent = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_consent_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_consent_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->consent);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_matching_rule_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_matching_rule_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->matching_rule) free((char*)arg1->matching_rule);
    if (arg2) {
      arg1->matching_rule = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->matching_rule,arg2);
    } else {
      arg1->matching_rule = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_matching_rule_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_matching_rule_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->matching_rule);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_authn_ctx_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_authn_ctx_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->authn_ctx) free((char*)arg1->authn_ctx);
    if (arg2) {
      arg1->authn_ctx = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->authn_ctx,arg2);
    } else {
      arg1->authn_ctx = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_authn_ctx_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_authn_ctx_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->authn_ctx);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_pxy_count_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_pxy_count_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->pxy_count) free((char*)arg1->pxy_count);
    if (arg2) {
      arg1->pxy_count = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->pxy_count,arg2);
    } else {
      arg1->pxy_count = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_pxy_count_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_pxy_count_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->pxy_count);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_get_complete_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_get_complete_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->get_complete) free((char*)arg1->get_complete);
    if (arg2) {
      arg1->get_complete = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->get_complete,arg2);
    } else {
      arg1->get_complete = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_get_complete_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_get_complete_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->get_complete);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_idppxylist_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_idppxylist_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->idppxylist) free((char*)arg1->idppxylist);
    if (arg2) {
      arg1->idppxylist = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->idppxylist,arg2);
    } else {
      arg1->idppxylist = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_idppxylist_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_idppxylist_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->idppxylist);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_rs_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_rs_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->rs) free((char*)arg1->rs);
    if (arg2) {
      arg1->rs = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->rs,arg2);
    } else {
      arg1->rs = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_rs_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_rs_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->rs);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_newnym_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_newnym_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->newnym) free((char*)arg1->newnym);
    if (arg2) {
      arg1->newnym = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->newnym,arg2);
    } else {
      arg1->newnym = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_newnym_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_newnym_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->newnym);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_saml_art_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_saml_art_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->saml_art) free((char*)arg1->saml_art);
    if (arg2) {
      arg1->saml_art = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->saml_art,arg2);
    } else {
      arg1->saml_art = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_saml_art_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_saml_art_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->saml_art);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_saml_resp_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_saml_resp_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->saml_resp) free((char*)arg1->saml_resp);
    if (arg2) {
      arg1->saml_resp = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->saml_resp,arg2);
    } else {
      arg1->saml_resp = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_saml_resp_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_saml_resp_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->saml_resp);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_saml_req_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_saml_req_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->saml_req) free((char*)arg1->saml_req);
    if (arg2) {
      arg1->saml_req = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->saml_req,arg2);
    } else {
      arg1->saml_req = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_saml_req_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_saml_req_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->saml_req);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sigalg_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sigalg_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sigalg) free((char*)arg1->sigalg);
    if (arg2) {
      arg1->sigalg = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sigalg,arg2);
    } else {
      arg1->sigalg = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sigalg_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sigalg_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->sigalg);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sig_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sig_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sig) free((char*)arg1->sig);
    if (arg2) {
      arg1->sig = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sig,arg2);
    } else {
      arg1->sig = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sig_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sig_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->sig);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sigval_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sigval_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sigval) free((char*)arg1->sigval);
    if (arg2) {
      arg1->sigval = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sigval,arg2);
    } else {
      arg1->sigval = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sigval_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sigval_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->sigval);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sigmsg_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sigmsg_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sigmsg) free((char*)arg1->sigmsg);
    if (arg2) {
      arg1->sigmsg = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sigmsg,arg2);
    } else {
      arg1->sigmsg = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_sigmsg_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_sigmsg_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->sigmsg);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_err_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_err_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->err) free((char*)arg1->err);
    if (arg2) {
      arg1->err = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->err,arg2);
    } else {
      arg1->err = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_err_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_err_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->err);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_msg_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_msg_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->msg) free((char*)arg1->msg);
    if (arg2) {
      arg1->msg = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->msg,arg2);
    } else {
      arg1->msg = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_msg_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_msg_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->msg);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_dbg_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_dbg_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->dbg) free((char*)arg1->dbg);
    if (arg2) {
      arg1->dbg = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->dbg,arg2);
    } else {
      arg1->dbg = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_dbg_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_dbg_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->dbg);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_zxapp_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_zxapp_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->zxapp) free((char*)arg1->zxapp);
    if (arg2) {
      arg1->zxapp = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->zxapp,arg2);
    } else {
      arg1->zxapp = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_zxapp_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_zxapp_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->zxapp);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_zxrfr_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_zxrfr_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->zxrfr) free((char*)arg1->zxrfr);
    if (arg2) {
      arg1->zxrfr = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->zxrfr,arg2);
    } else {
      arg1->zxrfr = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_zxrfr_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_zxrfr_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->zxrfr);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_ok_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_ok_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ok) free((char*)arg1->ok);
    if (arg2) {
      arg1->ok = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ok,arg2);
    } else {
      arg1->ok = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_ok_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_ok_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (char *) ((arg1)->ok);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_idp_list_set) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_idp_list_set. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_cgi_idp_list_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  if (arg1) (arg1)->idp_list = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cgi_idp_list_get) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cgi_idp_list_get. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (struct zxid_entity *) ((arg1)->idp_list);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_cgi) {
  struct zxid_cgi *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_cgi *)(struct zxid_cgi *) calloc(1, sizeof(struct zxid_cgi));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cgi, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_cgi(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_cgi TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_cgi resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_magic_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  unsigned int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_magic_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (unsigned int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->magic = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_magic_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  unsigned int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_magic_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (unsigned int) ((arg1)->magic);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sid_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sid_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sid) free((char*)arg1->sid);
    if (arg2) {
      arg1->sid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sid,arg2);
    } else {
      arg1->sid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sid_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sid_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->sid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_uid_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_uid_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->uid) free((char*)arg1->uid);
    if (arg2) {
      arg1->uid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->uid,arg2);
    } else {
      arg1->uid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_uid_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_uid_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->uid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_nid_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_nid_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->nid) free((char*)arg1->nid);
    if (arg2) {
      arg1->nid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->nid,arg2);
    } else {
      arg1->nid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_nid_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_nid_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->nid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sesix_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sesix_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sesix) free((char*)arg1->sesix);
    if (arg2) {
      arg1->sesix = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sesix,arg2);
    } else {
      arg1->sesix = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sesix_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sesix_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->sesix);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_an_ctx_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_an_ctx_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->an_ctx) free((char*)arg1->an_ctx);
    if (arg2) {
      arg1->an_ctx = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->an_ctx,arg2);
    } else {
      arg1->an_ctx = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_an_ctx_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_an_ctx_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->an_ctx);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_nidfmt_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_nidfmt_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->nidfmt = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_nidfmt_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_nidfmt_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char) ((arg1)->nidfmt);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sigres_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sigres_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->sigres = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sigres_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sigres_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char) ((arg1)->sigres);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_pad2_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_pad2_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->pad2 = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_pad2_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_pad2_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char) ((arg1)->pad2);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_pad3_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_pad3_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char) *Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->pad3 = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_pad3_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_pad3_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char) ((arg1)->pad3);
  {
    // out char
    ZVAL_STRINGL(return_value,&result, 1, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sso_a7n_path_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sso_a7n_path_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sso_a7n_path) free((char*)arg1->sso_a7n_path);
    if (arg2) {
      arg1->sso_a7n_path = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sso_a7n_path,arg2);
    } else {
      arg1->sso_a7n_path = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sso_a7n_path_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sso_a7n_path_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->sso_a7n_path);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_setcookie_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_setcookie_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->setcookie) free((char*)arg1->setcookie);
    if (arg2) {
      arg1->setcookie = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->setcookie,arg2);
    } else {
      arg1->setcookie = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_setcookie_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_setcookie_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->setcookie);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_cookie_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_cookie_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->cookie) free((char*)arg1->cookie);
    if (arg2) {
      arg1->cookie = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->cookie,arg2);
    } else {
      arg1->cookie = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_cookie_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_cookie_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->cookie);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_rs_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_rs_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->rs) free((char*)arg1->rs);
    if (arg2) {
      arg1->rs = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->rs,arg2);
    } else {
      arg1->rs = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_rs_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_rs_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->rs);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_nameid_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_nameid_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_ses_nameid_set. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  if (arg1) (arg1)->nameid = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_nameid_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa_NameID_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_nameid_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_sa_NameID_s *) ((arg1)->nameid);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_NameID_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_a7n_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa_Assertion_s *arg2 = (struct zx_sa_Assertion_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_a7n_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_ses_a7n_set. Expected SWIGTYPE_p_zx_sa_Assertion_s");
    }
  }
  if (arg1) (arg1)->a7n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_a7n_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa_Assertion_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_a7n_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_sa_Assertion_s *) ((arg1)->a7n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Assertion_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_a7n11_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa11_Assertion_s *arg2 = (struct zx_sa11_Assertion_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_a7n11_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa11_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_ses_a7n11_set. Expected SWIGTYPE_p_zx_sa11_Assertion_s");
    }
  }
  if (arg1) (arg1)->a7n11 = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_a7n11_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_sa11_Assertion_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_a7n11_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_sa11_Assertion_s *) ((arg1)->a7n11);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa11_Assertion_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_a7n12_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_ff12_Assertion_s *arg2 = (struct zx_ff12_Assertion_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_a7n12_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ff12_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_ses_a7n12_set. Expected SWIGTYPE_p_zx_ff12_Assertion_s");
    }
  }
  if (arg1) (arg1)->a7n12 = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_a7n12_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zx_ff12_Assertion_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_a7n12_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_ff12_Assertion_s *) ((arg1)->a7n12);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ff12_Assertion_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sesbuf_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sesbuf_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sesbuf) free((char*)arg1->sesbuf);
    if (arg2) {
      arg1->sesbuf = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sesbuf,arg2);
    } else {
      arg1->sesbuf = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sesbuf_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sesbuf_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->sesbuf);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sso_a7n_buf_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sso_a7n_buf_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->sso_a7n_buf) free((char*)arg1->sso_a7n_buf);
    if (arg2) {
      arg1->sso_a7n_buf = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->sso_a7n_buf,arg2);
    } else {
      arg1->sso_a7n_buf = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_sso_a7n_buf_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_sso_a7n_buf_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (char *) ((arg1)->sso_a7n_buf);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_at_set) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_at_set. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_ses_at_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  if (arg1) (arg1)->at = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_at_get) {
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_at_get. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zxid_attr *) ((arg1)->at);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_ses) {
  struct zxid_ses *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_ses *)(struct zxid_ses *) calloc(1, sizeof(struct zxid_ses));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_ses, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_ses(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_ses *arg1 = (struct zxid_ses *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_ses TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_ses resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_n_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_n_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_attr_n_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_n_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_n_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zxid_attr *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_nv_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_nv_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_attr_nv_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  if (arg1) (arg1)->nv = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_nv_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_nv_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zxid_attr *) ((arg1)->nv);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_name_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_name_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->name) free((char*)arg1->name);
    if (arg2) {
      arg1->name = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->name,arg2);
    } else {
      arg1->name = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_name_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_name_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (char *) ((arg1)->name);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_val_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_val_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->val) free((char*)arg1->val);
    if (arg2) {
      arg1->val = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->val,arg2);
    } else {
      arg1->val = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_val_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_val_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (char *) ((arg1)->val);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_map_val_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_map_val_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_attr_map_val_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->map_val = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_map_val_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_map_val_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zx_str *) ((arg1)->map_val);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_orig_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_sa_Attribute_s *arg2 = (struct zx_sa_Attribute_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_orig_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_attr_orig_set. Expected SWIGTYPE_p_zx_sa_Attribute_s");
    }
  }
  if (arg1) (arg1)->orig = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_orig_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_sa_Attribute_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_orig_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zx_sa_Attribute_s *) ((arg1)->orig);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Attribute_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_issuer_set) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_issuer_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_attr_issuer_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->issuer = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_attr_issuer_get) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_attr_issuer_get. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zx_str *) ((arg1)->issuer);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_attr) {
  struct zxid_attr *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_attr *)(struct zxid_attr *) calloc(1, sizeof(struct zxid_attr));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_attr(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_attr TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_attr resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_n_set) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_n_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_need_n_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_n_get) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_need *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_n_get. Expected SWIGTYPE_p_zxid_need");
    }
  }
  result = (struct zxid_need *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_need, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_at_set) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_at_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_need_at_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  if (arg1) (arg1)->at = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_at_get) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_at_get. Expected SWIGTYPE_p_zxid_need");
    }
  }
  result = (struct zxid_attr *) ((arg1)->at);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_usage_set) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_usage_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->usage) free((char*)arg1->usage);
    if (arg2) {
      arg1->usage = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->usage,arg2);
    } else {
      arg1->usage = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_usage_get) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_usage_get. Expected SWIGTYPE_p_zxid_need");
    }
  }
  result = (char *) ((arg1)->usage);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_retent_set) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_retent_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->retent) free((char*)arg1->retent);
    if (arg2) {
      arg1->retent = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->retent,arg2);
    } else {
      arg1->retent = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_retent_get) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_retent_get. Expected SWIGTYPE_p_zxid_need");
    }
  }
  result = (char *) ((arg1)->retent);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_oblig_set) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_oblig_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->oblig) free((char*)arg1->oblig);
    if (arg2) {
      arg1->oblig = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->oblig,arg2);
    } else {
      arg1->oblig = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_oblig_get) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_oblig_get. Expected SWIGTYPE_p_zxid_need");
    }
  }
  result = (char *) ((arg1)->oblig);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_ext_set) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_ext_set. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ext) free((char*)arg1->ext);
    if (arg2) {
      arg1->ext = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ext,arg2);
    } else {
      arg1->ext = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_need_ext_get) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_need_ext_get. Expected SWIGTYPE_p_zxid_need");
    }
  }
  result = (char *) ((arg1)->ext);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_need) {
  struct zxid_need *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_need *)(struct zxid_need *) calloc(1, sizeof(struct zxid_need));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_need, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_need(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_need TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_need resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_n_set) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_n_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_map_n_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_n_get) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  struct zxid_map *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_n_get. Expected SWIGTYPE_p_zxid_map");
    }
  }
  result = (struct zxid_map *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_rule_set) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_rule_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->rule = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_rule_get) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_rule_get. Expected SWIGTYPE_p_zxid_map");
    }
  }
  result = (int) ((arg1)->rule);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_ns_set) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_ns_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ns) free((char*)arg1->ns);
    if (arg2) {
      arg1->ns = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ns,arg2);
    } else {
      arg1->ns = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_ns_get) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_ns_get. Expected SWIGTYPE_p_zxid_map");
    }
  }
  result = (char *) ((arg1)->ns);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_src_set) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_src_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->src) free((char*)arg1->src);
    if (arg2) {
      arg1->src = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->src,arg2);
    } else {
      arg1->src = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_src_get) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_src_get. Expected SWIGTYPE_p_zxid_map");
    }
  }
  result = (char *) ((arg1)->src);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_dst_set) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_dst_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->dst) free((char*)arg1->dst);
    if (arg2) {
      arg1->dst = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->dst,arg2);
    } else {
      arg1->dst = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_dst_get) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_dst_get. Expected SWIGTYPE_p_zxid_map");
    }
  }
  result = (char *) ((arg1)->dst);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_ext_set) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_ext_set. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ext) free((char*)arg1->ext);
    if (arg2) {
      arg1->ext = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ext,arg2);
    } else {
      arg1->ext = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_ext_get) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_ext_get. Expected SWIGTYPE_p_zxid_map");
    }
  }
  result = (char *) ((arg1)->ext);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_map) {
  struct zxid_map *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_map *)(struct zxid_map *) calloc(1, sizeof(struct zxid_map));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_map(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_map TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_map resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cstr_list_n_set) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cstr_list_n_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_cstr_list_n_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cstr_list_n_get) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cstr_list_n_get. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  result = (struct zxid_cstr_list *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cstr_list_s_set) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cstr_list_s_set. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->s) free((char*)arg1->s);
    if (arg2) {
      arg1->s = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->s,arg2);
    } else {
      arg1->s = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cstr_list_s_get) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cstr_list_s_get. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  result = (char *) ((arg1)->s);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_cstr_list) {
  struct zxid_cstr_list *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_cstr_list *)(struct zxid_cstr_list *) calloc(1, sizeof(struct zxid_cstr_list));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_cstr_list(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_cstr_list TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_cstr_list resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_n_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_atsrc *arg2 = (struct zxid_atsrc *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_n_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_atsrc_n_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_n_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_atsrc *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_n_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (struct zxid_atsrc *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_atsrc, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_at_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_at_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_atsrc_at_set. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  if (arg1) (arg1)->at = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_at_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_at_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (struct zxid_attr *) ((arg1)->at);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_ns_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_ns_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ns) free((char*)arg1->ns);
    if (arg2) {
      arg1->ns = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ns,arg2);
    } else {
      arg1->ns = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_ns_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_ns_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (char *) ((arg1)->ns);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_weight_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_weight_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->weight) free((char*)arg1->weight);
    if (arg2) {
      arg1->weight = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->weight,arg2);
    } else {
      arg1->weight = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_weight_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_weight_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (char *) ((arg1)->weight);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_url_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_url_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->url) free((char*)arg1->url);
    if (arg2) {
      arg1->url = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->url,arg2);
    } else {
      arg1->url = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_url_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_url_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (char *) ((arg1)->url);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_aapml_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_aapml_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->aapml) free((char*)arg1->aapml);
    if (arg2) {
      arg1->aapml = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->aapml,arg2);
    } else {
      arg1->aapml = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_aapml_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_aapml_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (char *) ((arg1)->aapml);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_otherlim_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_otherlim_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->otherlim) free((char*)arg1->otherlim);
    if (arg2) {
      arg1->otherlim = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->otherlim,arg2);
    } else {
      arg1->otherlim = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_otherlim_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_otherlim_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (char *) ((arg1)->otherlim);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_ext_set) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_ext_set. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->ext) free((char*)arg1->ext);
    if (arg2) {
      arg1->ext = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->ext,arg2);
    } else {
      arg1->ext = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_atsrc_ext_get) {
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_atsrc_ext_get. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  result = (char *) ((arg1)->ext);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_atsrc) {
  struct zxid_atsrc *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_atsrc *)(struct zxid_atsrc *) calloc(1, sizeof(struct zxid_atsrc));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_atsrc, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_atsrc(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_atsrc *arg1 = (struct zxid_atsrc *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_atsrc TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_atsrc resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_n_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_n_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_entity_n_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  if (arg1) (arg1)->n = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_n_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_n_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zxid_entity *) ((arg1)->n);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_n_cdc_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_n_cdc_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_entity_n_cdc_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  if (arg1) (arg1)->n_cdc = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_n_cdc_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_n_cdc_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zxid_entity *) ((arg1)->n_cdc);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_eid_len_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  int arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_eid_len_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  if (arg1) (arg1)->eid_len = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_eid_len_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_eid_len_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (int) ((arg1)->eid_len);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_eid_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_eid_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->eid) free((char*)arg1->eid);
    if (arg2) {
      arg1->eid = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->eid,arg2);
    } else {
      arg1->eid = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_eid_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_eid_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (char *) ((arg1)->eid);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_sha1_name_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  char *arg2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_sha1_name_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
  }
  {
    if (arg2) strncpy(arg1->sha1_name,arg2,28);
    else arg1->sha1_name[0] = 0;
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_sha1_name_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_sha1_name_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (char *)(char *) ((arg1)->sha1_name);
  {
    RETVAL_STRINGL(result,28,1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_tls_cert_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  X509 *arg2 = (X509 *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_tls_cert_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_entity_tls_cert_set. Expected SWIGTYPE_p_X509");
    }
  }
  if (arg1) (arg1)->tls_cert = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_tls_cert_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  X509 *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_tls_cert_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (X509 *) ((arg1)->tls_cert);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_X509, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_sign_cert_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  X509 *arg2 = (X509 *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_sign_cert_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_entity_sign_cert_set. Expected SWIGTYPE_p_X509");
    }
  }
  if (arg1) (arg1)->sign_cert = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_sign_cert_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  X509 *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_sign_cert_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (X509 *) ((arg1)->sign_cert);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_X509, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_enc_cert_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  X509 *arg2 = (X509 *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_enc_cert_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_entity_enc_cert_set. Expected SWIGTYPE_p_X509");
    }
  }
  if (arg1) (arg1)->enc_cert = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_enc_cert_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  X509 *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_enc_cert_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (X509 *) ((arg1)->enc_cert);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_X509, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_ed_set) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  struct zx_md_EntityDescriptor_s *arg2 = (struct zx_md_EntityDescriptor_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_ed_set. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_md_EntityDescriptor_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_entity_ed_set. Expected SWIGTYPE_p_zx_md_EntityDescriptor_s");
    }
  }
  if (arg1) (arg1)->ed = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_entity_ed_get) {
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  struct zx_md_EntityDescriptor_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_entity_ed_get. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zx_md_EntityDescriptor_s *) ((arg1)->ed);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_EntityDescriptor_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_entity) {
  struct zxid_entity *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_entity *)(struct zxid_entity *) calloc(1, sizeof(struct zxid_entity));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_entity(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_entity *arg1 = (struct zxid_entity *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_entity TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_entity resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_simple) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_simple(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_list) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_idp_list(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_select) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_idp_select(arg1,arg2);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_fed_mgmt) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_fed_mgmt(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_new_conf_to_cf) {
  char *arg1 = (char *) 0 ;
  struct zxid_conf *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (struct zxid_conf *)zxid_new_conf_to_cf(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_conf, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_simple_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_simple_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_simple_cf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_simple_cf(arg1,arg2,arg3,arg4,arg5);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_list_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int *arg2 = (int *) 0 ;
  int arg3 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_list_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_list_cf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_idp_list_cf(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_select_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int *arg2 = (int *) 0 ;
  int arg3 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_select_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_select_cf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_idp_select_cf(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_fed_mgmt_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int *arg2 = (int *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  char *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_fed_mgmt_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_fed_mgmt_cf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_fed_mgmt_cf(arg1,arg2,arg3,arg4,arg5);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_conf_to_cf_len) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_conf_to_cf_len. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zxid_conf_to_cf_len(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_simple_len) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int *arg5 = (int *) 0 ;
  int arg6 ;
  char *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_simple_len. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_simple_len(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_list_len) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_list_len. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_idp_list_len(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_select_len) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_select_len. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_idp_select_len(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_fed_mgmt_len) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int *arg3 = (int *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  char *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_fed_mgmt_len. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_fed_mgmt_len(arg1,arg2,arg3,arg4,arg5);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_select_zxstr_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_select_zxstr_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_idp_select_zxstr_cf(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_simple_ab_pep) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  int *arg3 = (int *) 0 ;
  int arg4 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_simple_ab_pep. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_simple_ab_pep. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_simple_ab_pep. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_simple_ab_pep(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_simple_ses_active_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_simple_ses_active_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_simple_ses_active_cf. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_simple_ses_active_cf. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_simple_ses_active_cf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_simple_ses_active_cf(arg1,arg2,arg3,arg4,arg5);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_simple_no_ses_cf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int *arg4 = (int *) 0 ;
  int arg5 ;
  char *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_simple_no_ses_cf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_simple_no_ses_cf. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_simple_no_ses_cf. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_simple_no_ses_cf. Expected SWIGTYPE_p_int");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_simple_no_ses_cf(arg1,arg2,arg3,arg4,arg5);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_sref_set) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_ds_Reference_s *arg2 = (struct zx_ds_Reference_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_sref_set. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_ds_Reference_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxsig_ref_sref_set. Expected SWIGTYPE_p_zx_ds_Reference_s");
    }
  }
  if (arg1) (arg1)->sref = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_sref_get) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_ds_Reference_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_sref_get. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  result = (struct zx_ds_Reference_s *) ((arg1)->sref);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ds_Reference_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_blob_set) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_elem_s *arg2 = (struct zx_elem_s *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_blob_set. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxsig_ref_blob_set. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  if (arg1) (arg1)->blob = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_blob_get) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_elem_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_blob_get. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  result = (struct zx_elem_s *) ((arg1)->blob);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_elem_s, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_id_set) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_id_set. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxsig_ref_id_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->id = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_id_get) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_id_get. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  result = (struct zx_str *) ((arg1)->id);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_canon_set) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_canon_set. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxsig_ref_canon_set. Expected SWIGTYPE_p_zx_str");
    }
  }
  if (arg1) (arg1)->canon = arg2;
  
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_ref_canon_get) {
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_ref_canon_get. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  result = (struct zx_str *) ((arg1)->canon);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxsig_ref) {
  struct zxsig_ref *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxsig_ref *)(struct zxsig_ref *) calloc(1, sizeof(struct zxsig_ref));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxsig_ref, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxsig_ref(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxsig_ref *arg1 = (struct zxsig_ref *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxsig_ref TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxsig_ref resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_sign) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  struct zxsig_ref *arg3 = (struct zxsig_ref *) 0 ;
  X509 *arg4 = (X509 *) 0 ;
  void **arg5 = (void **) 0 ;
  struct zx_ds_Signature_s *result = 0 ;
  void *ptr5 ;
  int force5 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_sign. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxsig_sign. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxsig_sign. Expected SWIGTYPE_p_X509");
    }
  }
  {
    /* If they pass NULL by reference, make it into a void*
         This bit should go in arginit if arginit support init-ing scripting args */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_p_void, 0) < 0) {
      /* So... we didn't get a ref or ptr, but we'll accept NULL by reference */
      if (!((*args[4])->type==IS_NULL && PZVAL_IS_REF(*args[4]))) {
        /* wasn't a pre/ref/thing, OR anything like an int thing */
        SWIG_PHP_Error(E_ERROR, "Type error in argument $arg of zxsig_sign.");
      }
    }
    force5=0;
    if (arg1==NULL) {
      ptr5=(void *) calloc(1,sizeof(void *));
      
      arg5=&ptr5;
      /* have to passback arg$arg too */
      force5=1;
    }
  }
  result = (struct zx_ds_Signature_s *)zxsig_sign(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ds_Signature_s, 0);
  }
  {
    if (force5) {
      SWIG_SetPointerZval( *args[4], (void*) ptr5, SWIGTYPE_p_void, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_validate) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  X509 *arg2 = (X509 *) 0 ;
  struct zx_ds_Signature_s *arg3 = (struct zx_ds_Signature_s *) 0 ;
  int arg4 ;
  struct zxsig_ref *arg5 = (struct zxsig_ref *) 0 ;
  int result;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_validate. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxsig_validate. Expected SWIGTYPE_p_X509");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_ds_Signature_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxsig_validate. Expected SWIGTYPE_p_zx_ds_Signature_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zxsig_ref, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxsig_validate. Expected SWIGTYPE_p_zxsig_ref");
    }
  }
  result = (int)zxsig_validate(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_data_rsa_sha1) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char **arg4 = (char **) 0 ;
  void **arg5 = (void **) 0 ;
  char *arg6 = (char *) 0 ;
  int result;
  void *ptr5 ;
  int force5 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxsig_data_rsa_sha1. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxsig_data_rsa_sha1. Expected SWIGTYPE_p_p_char");
    }
  }
  {
    /* If they pass NULL by reference, make it into a void*
         This bit should go in arginit if arginit support init-ing scripting args */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_p_void, 0) < 0) {
      /* So... we didn't get a ref or ptr, but we'll accept NULL by reference */
      if (!((*args[4])->type==IS_NULL && PZVAL_IS_REF(*args[4]))) {
        /* wasn't a pre/ref/thing, OR anything like an int thing */
        SWIG_PHP_Error(E_ERROR, "Type error in argument $arg of zxsig_data_rsa_sha1.");
      }
    }
    force5=0;
    if (arg1==NULL) {
      ptr5=(void *) calloc(1,sizeof(void *));
      
      arg5=&ptr5;
      /* have to passback arg$arg too */
      force5=1;
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (int)zxsig_data_rsa_sha1(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_LONG(return_value,result);
  }
  {
    if (force5) {
      SWIG_SetPointerZval( *args[4], (void*) ptr5, SWIGTYPE_p_void, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxsig_verify_data_rsa_sha1) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  X509 *arg5 = (X509 *) 0 ;
  char *arg6 = (char *) 0 ;
  int result;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxsig_verify_data_rsa_sha1. Expected SWIGTYPE_p_X509");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (int)zxsig_verify_data_rsa_sha1(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxenc_symkey_dec) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_xenc_EncryptedData_s *arg2 = (struct zx_xenc_EncryptedData_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxenc_symkey_dec. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_xenc_EncryptedData_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxenc_symkey_dec. Expected SWIGTYPE_p_zx_xenc_EncryptedData_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxenc_symkey_dec. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_str *)zxenc_symkey_dec(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxenc_privkey_dec) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_xenc_EncryptedData_s *arg2 = (struct zx_xenc_EncryptedData_s *) 0 ;
  struct zx_xenc_EncryptedKey_s *arg3 = (struct zx_xenc_EncryptedKey_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxenc_privkey_dec. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_xenc_EncryptedData_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxenc_privkey_dec. Expected SWIGTYPE_p_zx_xenc_EncryptedData_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_xenc_EncryptedKey_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxenc_privkey_dec. Expected SWIGTYPE_p_zx_xenc_EncryptedKey_s");
    }
  }
  result = (struct zx_str *)zxenc_privkey_dec(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxenc_symkey_enc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  struct zx_xenc_EncryptedData_s *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxenc_symkey_enc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxenc_symkey_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxenc_symkey_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxenc_symkey_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxenc_symkey_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_xenc_EncryptedData_s *)zxenc_symkey_enc(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_xenc_EncryptedData_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxenc_pubkey_enc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_xenc_EncryptedKey_s **arg3 = (struct zx_xenc_EncryptedKey_s **) 0 ;
  X509 *arg4 = (X509 *) 0 ;
  char *arg5 = (char *) 0 ;
  struct zx_xenc_EncryptedData_s *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxenc_pubkey_enc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxenc_pubkey_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_zx_xenc_EncryptedKey_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxenc_pubkey_enc. Expected SWIGTYPE_p_p_zx_xenc_EncryptedKey_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxenc_pubkey_enc. Expected SWIGTYPE_p_X509");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (struct zx_xenc_EncryptedData_s *)zxenc_pubkey_enc(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_xenc_EncryptedData_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxlog_write_line) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxlog_write_line. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  zxlog_write_line(arg1,arg2,arg3,arg4,arg5);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxlog_path) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxlog_path. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxlog_path. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxlog_path. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxlog_path(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxlog_dup_check) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *arg3 = (char *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxlog_dup_check. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxlog_dup_check. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zxlog_dup_check(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxlog_blob) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  char *arg5 = (char *) 0 ;
  int result;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxlog_blob. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxlog_blob. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxlog_blob. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (int)zxlog_blob(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxlog) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct timeval *arg2 = (struct timeval *) 0 ;
  struct timeval *arg3 = (struct timeval *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_str *arg7 = (struct zx_str *) 0 ;
  struct zx_str *arg8 = (struct zx_str *) 0 ;
  char *arg9 = (char *) 0 ;
  char *arg10 = (char *) 0 ;
  char *arg11 = (char *) 0 ;
  char *arg12 = (char *) 0 ;
  char *arg13 = (char *) 0 ;
  void *arg14 = 0 ;
  int result;
  zval **args[13];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 13) || (zend_get_parameters_array_ex(13, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxlog. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_timeval, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxlog. Expected SWIGTYPE_p_timeval");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_timeval, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxlog. Expected SWIGTYPE_p_timeval");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxlog. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxlog. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[6], (void **) &arg7, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 7 of zxlog. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[7], (void **) &arg8, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 8 of zxlog. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[8]);
    arg9 = (char *) Z_STRVAL_PP(args[8]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[9]);
    arg10 = (char *) Z_STRVAL_PP(args[9]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[10]);
    arg11 = (char *) Z_STRVAL_PP(args[10]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[11]);
    arg12 = (char *) Z_STRVAL_PP(args[11]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[12]);
    arg13 = (char *) Z_STRVAL_PP(args[12]);
    /*@SWIG@*/;
  }
  result = (int)zxlog(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ent_from_file) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ent_from_file. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_entity *)zxid_get_ent_from_file(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ent_from_cache) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ent_from_cache. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_ent_from_cache. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zxid_entity *)zxid_get_ent_from_cache(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_write_ent_to_cache) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_write_ent_to_cache. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_write_ent_to_cache. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (int)zxid_write_ent_to_cache(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_parse_meta) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char **arg2 = (char **) 0 ;
  char *arg3 = (char *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_parse_meta. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_parse_meta. Expected SWIGTYPE_p_p_char");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zxid_entity *)zxid_parse_meta(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_meta_ss) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_meta_ss. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_meta_ss. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zxid_entity *)zxid_get_meta_ss(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_meta) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_meta. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_entity *)zxid_get_meta(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ent_ss) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ent_ss. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_ent_ss. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zxid_entity *)zxid_get_ent_ss(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ent) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ent. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_entity *)zxid_get_ent(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ent_by_succinct_id) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ent_by_succinct_id. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_entity *)zxid_get_ent_by_succinct_id(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ent_by_sha1_name) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ent_by_sha1_name. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_entity *)zxid_get_ent_by_sha1_name(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_load_cot_cache) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_load_cot_cache. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zxid_entity *)zxid_load_cot_cache(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_key_info) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  X509 *arg2 = (X509 *) 0 ;
  struct zx_ds_KeyInfo_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_key_info. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_key_info. Expected SWIGTYPE_p_X509");
    }
  }
  result = (struct zx_ds_KeyInfo_s *)zxid_key_info(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_ds_KeyInfo_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_key_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  X509 *arg3 = (X509 *) 0 ;
  struct zx_md_KeyDescriptor_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_key_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_X509, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_key_desc. Expected SWIGTYPE_p_X509");
    }
  }
  result = (struct zx_md_KeyDescriptor_s *)zxid_key_desc(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_KeyDescriptor_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ar_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_md_ArtifactResolutionService_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ar_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_md_ArtifactResolutionService_s *)zxid_ar_desc(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_ArtifactResolutionService_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sso_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_md_SingleSignOnService_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sso_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_md_SingleSignOnService_s *)zxid_sso_desc(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_SingleSignOnService_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_slo_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_md_SingleLogoutService_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_slo_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_md_SingleLogoutService_s *)zxid_slo_desc(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_SingleLogoutService_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mni_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_md_ManageNameIDService_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mni_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_md_ManageNameIDService_s *)zxid_mni_desc(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_ManageNameIDService_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ac_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_md_AssertionConsumerService_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ac_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_md_AssertionConsumerService_s *)zxid_ac_desc(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_AssertionConsumerService_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_sso_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_md_IDPSSODescriptor_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_sso_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_md_IDPSSODescriptor_s *)zxid_idp_sso_desc(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_IDPSSODescriptor_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_sso_desc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_md_SPSSODescriptor_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_sso_desc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_md_SPSSODescriptor_s *)zxid_sp_sso_desc(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_md_SPSSODescriptor_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_meta) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_meta. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_meta. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (struct zx_str *)zxid_sp_meta(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_send_sp_meta) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_send_sp_meta. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_send_sp_meta. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (int)zxid_send_sp_meta(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_carml) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_carml. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_str *)zxid_sp_carml(arg1);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_my_entity_id) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_my_entity_id. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_str *)zxid_my_entity_id(arg1);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_my_cdc_url) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_my_cdc_url. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_str *)zxid_my_cdc_url(arg1);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_my_issuer) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_Issuer_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_my_issuer. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_sa_Issuer_s *)zxid_my_issuer(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Issuer_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sha1_file) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sha1_file. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  zxid_sha1_file(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_extract_cert) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  X509 *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (X509 *)zxid_extract_cert(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_X509, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_extract_private_key) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  void **result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (void **)zxid_extract_private_key(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_read_cert) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  X509 *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_read_cert. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (X509 *)zxid_read_cert(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_X509, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_read_private_key) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  void **result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_read_private_key. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (void **)zxid_read_private_key(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_p_void, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_set_opt) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  int arg3 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_set_opt. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zxid_set_opt(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_url_set) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_url_set. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  zxid_url_set(arg1,arg2);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_init_conf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_init_conf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)zxid_init_conf(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_init_conf_ctx) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_conf *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_init_conf_ctx. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_conf *)zxid_init_conf_ctx(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_conf, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_new_conf) {
  char *arg1 = (char *) 0 ;
  struct zxid_conf *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (struct zxid_conf *)zxid_new_conf(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_conf, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_parse_conf_raw) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_parse_conf_raw. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zxid_parse_conf_raw(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_parse_conf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_parse_conf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)zxid_parse_conf(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_self_sig_cert) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  int result;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_self_sig_cert. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (int)zxid_mk_self_sig_cert(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_load_map) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zxid_map *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_load_map. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_load_map. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zxid_map *)zxid_load_map(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_load_need) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_need *arg2 = (struct zxid_need *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zxid_need *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_load_need. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_load_need. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zxid_need *)zxid_load_need(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_need, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_load_atsrc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_atsrc *arg2 = (struct zxid_atsrc *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zxid_atsrc *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_load_atsrc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_atsrc, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_load_atsrc. Expected SWIGTYPE_p_zxid_atsrc");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zxid_atsrc *)zxid_load_atsrc(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_atsrc, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_new_at) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[7];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 7) || (zend_get_parameters_array_ex(7, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_new_at. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_new_at. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg7 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  result = (struct zxid_attr *)zxid_new_at(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_load_cstr_list) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cstr_list *arg2 = (struct zxid_cstr_list *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_load_cstr_list. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_load_cstr_list. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zxid_cstr_list *)zxid_load_cstr_list(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_is_needed) {
  struct zxid_need *arg1 = (struct zxid_need *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_need *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_need, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_is_needed. Expected SWIGTYPE_p_zxid_need");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_need *)zxid_is_needed(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_need, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_find_map) {
  struct zxid_map *arg1 = (struct zxid_map *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_map *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_find_map. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_map *)zxid_find_map(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_map, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_find_cstr_list) {
  struct zxid_cstr_list *arg1 = (struct zxid_cstr_list *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_cstr_list *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cstr_list, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_find_cstr_list. Expected SWIGTYPE_p_zxid_cstr_list");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_cstr_list *)zxid_find_cstr_list(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cstr_list, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_find_at) {
  struct zxid_attr *arg1 = (struct zxid_attr *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_attr *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_find_at. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_attr *)zxid_find_at(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_attr, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_parse_cgi) {
  struct zxid_cgi *arg1 = (struct zxid_cgi *) 0 ;
  char *arg2 = (char *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_parse_cgi. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)zxid_parse_cgi(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_new_cgi) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_cgi *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_new_cgi. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_cgi *)zxid_new_cgi(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_cgi, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_sid_from_cookie) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  char *arg3 = (char *) 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_sid_from_cookie. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_sid_from_cookie. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  zxid_get_sid_from_cookie(arg1,arg2,(char const *)arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_fetch_ses) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zxid_ses *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_fetch_ses. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zxid_ses *)zxid_fetch_ses(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_ses, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ses) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ses. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_ses. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)zxid_get_ses(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_put_ses) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_put_ses. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_put_ses. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_put_ses(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_del_ses) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_del_ses. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_del_ses. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_del_ses(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ses_sso_a7n) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ses_sso_a7n. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_ses_sso_a7n. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_get_ses_sso_a7n(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_ses_idp) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  struct zxid_entity *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_ses_idp. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_ses_idp. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zxid_entity *)zxid_get_ses_idp(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_entity, 0);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_find_ses) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_find_ses. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_find_ses. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_find_ses. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_find_ses. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (int)zxid_find_ses(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_pool_to_ldif) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_pool_to_ldif. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_pool_to_ldif. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zx_str *)zxid_pool_to_ldif(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_pool_to_json) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_pool_to_json. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_pool_to_json. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zx_str *)zxid_pool_to_json(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_pool_to_qs) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_attr *arg2 = (struct zxid_attr *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_pool_to_qs. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_attr, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_pool_to_qs. Expected SWIGTYPE_p_zxid_attr");
    }
  }
  result = (struct zx_str *)zxid_pool_to_qs(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_ses_to_pool) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_ses_to_pool. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_ses_to_pool. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  zxid_ses_to_pool(arg1,arg2);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_add_attr_to_pool) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_add_attr_to_pool. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_add_attr_to_pool. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_add_attr_to_pool. Expected SWIGTYPE_p_zx_str");
    }
  }
  zxid_add_attr_to_pool(arg1,arg2,arg3,arg4);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_parse_mni) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char **arg3 = (char **) 0 ;
  struct zx_sa_NameID_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_parse_mni. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_parse_mni. Expected SWIGTYPE_p_p_char");
    }
  }
  result = (struct zx_sa_NameID_s *)zxid_parse_mni(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_NameID_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_put_user) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  char *arg6 = (char *) 0 ;
  int result;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_put_user. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_put_user. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_put_user. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_put_user. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_put_user. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (int)zxid_put_user(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_user_nameid) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  struct zx_sa_NameID_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_user_nameid. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_user_nameid. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  result = (struct zx_sa_NameID_s *)zxid_get_user_nameid(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_NameID_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_user_change_nameid) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_user_change_nameid. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_user_change_nameid. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_user_change_nameid. Expected SWIGTYPE_p_zx_str");
    }
  }
  zxid_user_change_nameid(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_pw_authn) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_pw_authn. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_pw_authn. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_pw_authn. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_pw_authn(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_version) {
  int result;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (int)zxid_version();
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_version_str) {
  char *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (char *)zxid_version_str();
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_date_time) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  time_t arg2 ;
  struct zx_str *result = 0 ;
  time_t *tmp2 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_date_time. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    if(SWIG_ConvertPtr(*args[1], (void **) &tmp2, SWIGTYPE_p_time_t, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_date_time. Expected SWIGTYPE_p_time_t");
    }
    arg2 = *tmp2;
  }
  result = (struct zx_str *)zxid_date_time(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_id) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_id. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_mk_id(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_soap_call_raw) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_soap_call_raw. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_soap_call_raw. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_soap_call_raw. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_root_s *)zxid_soap_call_raw(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_lecp_check) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_lecp_check. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_lecp_check. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (struct zx_str *)zxid_lecp_check(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cdc_read) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cdc_read. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_cdc_read. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (int)zxid_cdc_read(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cdc_check) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cdc_check. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_cdc_check. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (int)zxid_cdc_check(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_soap_call_envelope) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_e_Envelope_s *arg3 = (struct zx_e_Envelope_s *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_soap_call_envelope. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_soap_call_envelope. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_e_Envelope_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_soap_call_envelope. Expected SWIGTYPE_p_zx_e_Envelope_s");
    }
  }
  result = (struct zx_root_s *)zxid_soap_call_envelope(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_soap_call_hdr_body) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_e_Header_s *arg3 = (struct zx_e_Header_s *) 0 ;
  struct zx_e_Body_s *arg4 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_soap_call_hdr_body. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_soap_call_hdr_body. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_e_Header_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_soap_call_hdr_body. Expected SWIGTYPE_p_zx_e_Header_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_e_Body_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_soap_call_hdr_body. Expected SWIGTYPE_p_zx_e_Body_s");
    }
  }
  result = (struct zx_root_s *)zxid_soap_call_hdr_body(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_soap_call_body) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_e_Body_s *arg3 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_soap_call_body. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_soap_call_body. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_e_Body_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_soap_call_body. Expected SWIGTYPE_p_zx_e_Body_s");
    }
  }
  result = (struct zx_root_s *)zxid_soap_call_body(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_soap_cgi_resp_body) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_e_Body_s *arg2 = (struct zx_e_Body_s *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_soap_cgi_resp_body. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_e_Body_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_soap_cgi_resp_body. Expected SWIGTYPE_p_zx_e_Body_s");
    }
  }
  result = (int)zxid_soap_cgi_resp_body(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_post_enc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_saml2_post_enc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_saml2_post_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_saml2_post_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_str *)zxid_saml2_post_enc(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_redir_enc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_saml2_redir_enc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_saml2_redir_enc. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_saml2_redir_enc(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_redir_url) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_saml2_redir_url. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_saml2_redir_url. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_saml2_redir_url. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_saml2_redir_url(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_redir) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_saml2_redir. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_saml2_redir. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_saml2_redir. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_saml2_redir(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_resp_redir) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_saml2_resp_redir. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_saml2_resp_redir. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_saml2_resp_redir. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_saml2_resp_redir(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml_ok) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_sp_Status_s *arg3 = (struct zx_sp_Status_s *) 0 ;
  char *arg4 = (char *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_saml_ok. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_saml_ok. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_sp_Status_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_saml_ok. Expected SWIGTYPE_p_zx_sp_Status_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (int)zxid_saml_ok(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_decrypt_nameid) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  struct zx_sa_EncryptedID_s *arg3 = (struct zx_sa_EncryptedID_s *) 0 ;
  struct zx_sa_NameID_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_decrypt_nameid. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_decrypt_nameid. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_sa_EncryptedID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_decrypt_nameid. Expected SWIGTYPE_p_zx_sa_EncryptedID_s");
    }
  }
  result = (struct zx_sa_NameID_s *)zxid_decrypt_nameid(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_NameID_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_decrypt_newnym) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_sp_NewEncryptedID_s *arg3 = (struct zx_sp_NewEncryptedID_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_decrypt_newnym. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_decrypt_newnym. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_sp_NewEncryptedID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_decrypt_newnym. Expected SWIGTYPE_p_zx_sp_NewEncryptedID_s");
    }
  }
  result = (struct zx_str *)zxid_decrypt_newnym(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_chk_sig) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_elem_s *arg4 = (struct zx_elem_s *) 0 ;
  struct zx_ds_Signature_s *arg5 = (struct zx_ds_Signature_s *) 0 ;
  struct zx_sa_Issuer_s *arg6 = (struct zx_sa_Issuer_s *) 0 ;
  char *arg7 = (char *) 0 ;
  int result;
  zval **args[7];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 7) || (zend_get_parameters_array_ex(7, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_chk_sig. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_chk_sig. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_chk_sig. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_elem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_chk_sig. Expected SWIGTYPE_p_zx_elem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_ds_Signature_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_chk_sig. Expected SWIGTYPE_p_zx_ds_Signature_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_sa_Issuer_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_chk_sig. Expected SWIGTYPE_p_zx_sa_Issuer_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg7 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  result = (int)zxid_chk_sig(arg1,arg2,arg3,arg4,arg5,arg6,(char const *)arg7);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_val) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_map *arg2 = (struct zxid_map *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_val. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_map, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_map_val. Expected SWIGTYPE_p_zxid_map");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_map_val. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_str *)zxid_map_val(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_loc_raw) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_entity *arg3 = (struct zxid_entity *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_loc_raw. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_loc_raw. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_loc_raw. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_idp_loc_raw(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_loc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zxid_entity *arg4 = (struct zxid_entity *) 0 ;
  int arg5 ;
  char *arg6 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_loc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_loc. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_loc. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_idp_loc. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_idp_loc(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_soap) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zxid_entity *arg4 = (struct zxid_entity *) 0 ;
  int arg5 ;
  struct zx_e_Body_s *arg6 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_soap. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_soap. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_soap. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_idp_soap. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_e_Body_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_idp_soap. Expected SWIGTYPE_p_zx_e_Body_s");
    }
  }
  result = (struct zx_root_s *)zxid_idp_soap(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_loc_by_index_raw) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_entity *arg3 = (struct zxid_entity *) 0 ;
  int arg4 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  int *arg6 = (int *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_loc_by_index_raw. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_loc_by_index_raw. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_loc_by_index_raw. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_sp_loc_by_index_raw. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_sp_loc_by_index_raw. Expected SWIGTYPE_p_int");
    }
  }
  result = (struct zx_str *)zxid_sp_loc_by_index_raw(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_loc_raw) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_entity *arg3 = (struct zxid_entity *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_loc_raw. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_loc_raw. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_loc_raw. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_sp_loc_raw(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_loc) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zxid_entity *arg4 = (struct zxid_entity *) 0 ;
  int arg5 ;
  char *arg6 = (char *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_loc. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_loc. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_loc. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_loc. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  result = (struct zx_str *)zxid_sp_loc(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_soap) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zxid_entity *arg4 = (struct zxid_entity *) 0 ;
  int arg5 ;
  struct zx_e_Body_s *arg6 = (struct zx_e_Body_s *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_soap. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_soap. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_soap. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_soap. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_e_Body_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_sp_soap. Expected SWIGTYPE_p_zx_e_Body_s");
    }
  }
  result = (struct zx_root_s *)zxid_sp_soap(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_decode_redir_or_post) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_root_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_decode_redir_or_post. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_decode_redir_or_post. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_decode_redir_or_post. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_root_s *)zxid_decode_redir_or_post(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_root_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_dispatch) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_dispatch. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_dispatch. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_dispatch. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_str *)zxid_sp_dispatch(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_soap_dispatch) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_root_s *arg4 = (struct zx_root_s *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_soap_dispatch. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_soap_dispatch. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_soap_dispatch. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_root_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_soap_dispatch. Expected SWIGTYPE_p_zx_root_s");
    }
  }
  result = (int)zxid_sp_soap_dispatch(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_soap_parse) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int result;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_soap_parse. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_soap_parse. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_soap_parse. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (int)zxid_sp_soap_parse(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_dispatch) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_dispatch. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_dispatch. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_dispatch. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_str *)zxid_idp_dispatch(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_soap_dispatch) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_root_s *arg4 = (struct zx_root_s *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_soap_dispatch. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_soap_dispatch. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_soap_dispatch. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_root_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_idp_soap_dispatch. Expected SWIGTYPE_p_zx_root_s");
    }
  }
  result = (int)zxid_idp_soap_dispatch(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_soap_parse) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int result;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_soap_parse. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_soap_parse. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_soap_parse. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (int)zxid_idp_soap_parse(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_add_ldif_attributes) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_Attribute_s *arg2 = (struct zx_sa_Attribute_s *) 0 ;
  int arg3 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  struct zx_sa_Attribute_s *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_add_ldif_attributes. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_add_ldif_attributes. Expected SWIGTYPE_p_zx_sa_Attribute_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  result = (struct zx_sa_Attribute_s *)zxid_add_ldif_attributes(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Attribute_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_sso) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sp_AuthnRequest_s *arg4 = (struct zx_sp_AuthnRequest_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_sso. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_sso. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_sso. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sp_AuthnRequest_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_idp_sso. Expected SWIGTYPE_p_zx_sp_AuthnRequest_s");
    }
  }
  result = (struct zx_str *)zxid_idp_sso(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_pick_sso_profile) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_entity *arg3 = (struct zxid_entity *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_pick_sso_profile. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_pick_sso_profile. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_pick_sso_profile. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (int)zxid_pick_sso_profile(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_start_sso) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_start_sso. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_start_sso. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (int)zxid_start_sso(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_start_sso_url) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_start_sso_url. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_start_sso_url. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (struct zx_str *)zxid_start_sso_url(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_start_sso_location) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_start_sso_location. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_start_sso_location. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (struct zx_str *)zxid_start_sso_location(arg1,arg2);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_deref_art) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_deref_art. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_deref_art. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_deref_art. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_sp_deref_art(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_sso_finalize) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sa_Assertion_s *arg4 = (struct zx_sa_Assertion_s *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_sso_finalize. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_sso_finalize. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_sso_finalize. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sa_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_sso_finalize. Expected SWIGTYPE_p_zx_sa_Assertion_s");
    }
  }
  result = (int)zxid_sp_sso_finalize(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_anon_finalize) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_anon_finalize. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_anon_finalize. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_anon_finalize. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_sp_anon_finalize(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_map_nid_fmt) {
  char *arg1 = (char *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_saml2_map_nid_fmt(arg1);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_map_protocol_binding) {
  char *arg1 = (char *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_saml2_map_protocol_binding(arg1);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_protocol_binding_map_saml2) {
  struct zx_str *arg1 = (struct zx_str *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_protocol_binding_map_saml2. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (int)zxid_protocol_binding_map_saml2(arg1);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_saml2_map_authn_ctx) {
  char *arg1 = (char *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  result = (char *)zxid_saml2_map_authn_ctx(arg1);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_issuer) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_sa_Issuer_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_issuer. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_issuer. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zx_sa_Issuer_s *)zxid_issuer(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Issuer_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sigres_map) {
  int arg1 ;
  char **arg2 = (char **) 0 ;
  char **arg3 = (char **) 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sigres_map. Expected SWIGTYPE_p_p_char");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sigres_map. Expected SWIGTYPE_p_p_char");
    }
  }
  zxid_sigres_map(arg1,arg2,arg3);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_validate_conditions) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sa_Assertion_s *arg4 = (struct zx_sa_Assertion_s *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  struct timeval *arg6 = (struct timeval *) 0 ;
  char **arg7 = (char **) 0 ;
  int result;
  zval **args[7];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 7) || (zend_get_parameters_array_ex(7, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_validate_conditions. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_validate_conditions. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_validate_conditions. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sa_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_validate_conditions. Expected SWIGTYPE_p_zx_sa_Assertion_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_validate_conditions. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_timeval, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_validate_conditions. Expected SWIGTYPE_p_timeval");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[6], (void **) &arg7, SWIGTYPE_p_p_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 7 of zxid_validate_conditions. Expected SWIGTYPE_p_p_char");
    }
  }
  result = (int)zxid_validate_conditions(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_slo_soap) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_slo_soap. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_slo_soap. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_slo_soap. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_sp_slo_soap(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_slo_redir) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_slo_redir. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_slo_redir. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_slo_redir. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_str *)zxid_sp_slo_redir(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_slo_do) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sp_LogoutRequest_s *arg4 = (struct zx_sp_LogoutRequest_s *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_slo_do. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_slo_do. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_slo_do. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sp_LogoutRequest_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_slo_do. Expected SWIGTYPE_p_zx_sp_LogoutRequest_s");
    }
  }
  result = (int)zxid_sp_slo_do(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_idp_slo_do) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sp_LogoutRequest_s *arg4 = (struct zx_sp_LogoutRequest_s *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_idp_slo_do. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_idp_slo_do. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_idp_slo_do. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sp_LogoutRequest_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_idp_slo_do. Expected SWIGTYPE_p_zx_sp_LogoutRequest_s");
    }
  }
  result = (int)zxid_idp_slo_do(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_slo_resp_redir) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_sp_LogoutRequest_s *arg3 = (struct zx_sp_LogoutRequest_s *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_slo_resp_redir. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_slo_resp_redir. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_sp_LogoutRequest_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_slo_resp_redir. Expected SWIGTYPE_p_zx_sp_LogoutRequest_s");
    }
  }
  result = (struct zx_str *)zxid_slo_resp_redir(arg1,arg2,arg3);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_mni_soap) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_mni_soap. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_mni_soap. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_mni_soap. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_mni_soap. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (int)zxid_sp_mni_soap(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_sp_mni_redir) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_sp_mni_redir. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_sp_mni_redir. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_sp_mni_redir. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_sp_mni_redir. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_str *)zxid_sp_mni_redir(arg1,arg2,arg3,arg4);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mni_do) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sp_ManageNameIDRequest_s *arg4 = (struct zx_sp_ManageNameIDRequest_s *) 0 ;
  struct zx_sp_ManageNameIDResponse_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mni_do. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mni_do. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mni_do. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sp_ManageNameIDRequest_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mni_do. Expected SWIGTYPE_p_zx_sp_ManageNameIDRequest_s");
    }
  }
  result = (struct zx_sp_ManageNameIDResponse_s *)zxid_mni_do(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_ManageNameIDResponse_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mni_do_ss) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  struct zx_sp_ManageNameIDRequest_s *arg4 = (struct zx_sp_ManageNameIDRequest_s *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  struct zx_str *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mni_do_ss. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mni_do_ss. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mni_do_ss. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sp_ManageNameIDRequest_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mni_do_ss. Expected SWIGTYPE_p_zx_sp_ManageNameIDRequest_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_mni_do_ss. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_str *)zxid_mni_do_ss(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_STRINGL(return_value, result->s, result->len, 1);
    /* Do not free underlying zx_str because they are usually returned by reference. */
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_pep_az_soap) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zxid_ses *arg3 = (struct zxid_ses *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_pep_az_soap. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_pep_az_soap. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_pep_az_soap. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (int)zxid_pep_az_soap(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_find_attribute) {
  struct zx_sa_Assertion_s *arg1 = (struct zx_sa_Assertion_s *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  char *arg5 = (char *) 0 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  int arg8 ;
  struct zx_sa_Attribute_s *result = 0 ;
  zval **args[8];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 8) || (zend_get_parameters_array_ex(8, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_sa_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_find_attribute. Expected SWIGTYPE_p_zx_sa_Assertion_s");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg7 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[7]);
    arg8 = (int) Z_LVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  result = (struct zx_sa_Attribute_s *)zxid_find_attribute(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Attribute_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_authn_req) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_cgi *arg2 = (struct zxid_cgi *) 0 ;
  struct zx_sp_AuthnRequest_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_authn_req. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_cgi, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_authn_req. Expected SWIGTYPE_p_zxid_cgi");
    }
  }
  result = (struct zx_sp_AuthnRequest_s *)zxid_mk_authn_req(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_AuthnRequest_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_art_deref) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_sp_ArtifactResolve_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_art_deref. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_art_deref. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zx_sp_ArtifactResolve_s *)zxid_mk_art_deref(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_ArtifactResolve_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_Status) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_sp_Status_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_Status. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_sp_Status_s *)zxid_mk_Status(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_Status_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_OK) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sp_Status_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_OK. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_sp_Status_s *)zxid_OK(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_Status_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_enc_id) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  struct zxid_entity *arg3 = (struct zxid_entity *) 0 ;
  struct zx_sa_EncryptedID_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_enc_id. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_enc_id. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_enc_id. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zx_sa_EncryptedID_s *)zxid_mk_enc_id(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_EncryptedID_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_enc_a7n) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_Assertion_s *arg2 = (struct zx_sa_Assertion_s *) 0 ;
  struct zxid_entity *arg3 = (struct zxid_entity *) 0 ;
  struct zx_sa_EncryptedAssertion_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_enc_a7n. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_Assertion_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_enc_a7n. Expected SWIGTYPE_p_zx_sa_Assertion_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_enc_a7n. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zx_sa_EncryptedAssertion_s *)zxid_mk_enc_a7n(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_EncryptedAssertion_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_logout) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zxid_entity *arg4 = (struct zxid_entity *) 0 ;
  struct zx_sp_LogoutRequest_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_logout. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_logout. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_logout. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_logout. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zx_sp_LogoutRequest_s *)zxid_mk_logout(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_LogoutRequest_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_logout_resp) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sp_Status_s *arg2 = (struct zx_sp_Status_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_sp_LogoutResponse_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_logout_resp. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sp_Status_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_logout_resp. Expected SWIGTYPE_p_zx_sp_Status_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_logout_resp. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_sp_LogoutResponse_s *)zxid_mk_logout_resp(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_LogoutResponse_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_mni) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sa_NameID_s *arg2 = (struct zx_sa_NameID_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zxid_entity *arg4 = (struct zxid_entity *) 0 ;
  struct zx_sp_ManageNameIDRequest_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_mni. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_mni. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_mni. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_mni. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  result = (struct zx_sp_ManageNameIDRequest_s *)zxid_mk_mni(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_ManageNameIDRequest_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_mni_resp) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sp_Status_s *arg2 = (struct zx_sp_Status_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_sp_ManageNameIDResponse_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_mni_resp. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_sp_Status_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_mni_resp. Expected SWIGTYPE_p_zx_sp_Status_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_mni_resp. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_sp_ManageNameIDResponse_s *)zxid_mk_mni_resp(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_ManageNameIDResponse_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_a7n) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_sa_Subject_s *arg3 = (struct zx_sa_Subject_s *) 0 ;
  struct zx_sa_AuthnStatement_s *arg4 = (struct zx_sa_AuthnStatement_s *) 0 ;
  struct zx_sa_AttributeStatement_s *arg5 = (struct zx_sa_AttributeStatement_s *) 0 ;
  struct zx_xasa_XACMLAuthzDecisionStatement_s *arg6 = (struct zx_xasa_XACMLAuthzDecisionStatement_s *) 0 ;
  struct zx_sa_Assertion_s *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_a7n. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_a7n. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_sa_Subject_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_a7n. Expected SWIGTYPE_p_zx_sa_Subject_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_sa_AuthnStatement_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_a7n. Expected SWIGTYPE_p_zx_sa_AuthnStatement_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_sa_AttributeStatement_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_mk_a7n. Expected SWIGTYPE_p_zx_sa_AttributeStatement_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_xasa_XACMLAuthzDecisionStatement_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_mk_a7n. Expected SWIGTYPE_p_zx_xasa_XACMLAuthzDecisionStatement_s");
    }
  }
  result = (struct zx_sa_Assertion_s *)zxid_mk_a7n(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Assertion_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_subj) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_entity *arg2 = (struct zxid_entity *) 0 ;
  struct zx_sa_NameID_s *arg3 = (struct zx_sa_NameID_s *) 0 ;
  struct zx_sa_Subject_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_subj. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_entity, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_subj. Expected SWIGTYPE_p_zxid_entity");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_sa_NameID_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_subj. Expected SWIGTYPE_p_zx_sa_NameID_s");
    }
  }
  result = (struct zx_sa_Subject_s *)zxid_mk_subj(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Subject_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_an_stmt) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  struct zx_sa_AuthnStatement_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_an_stmt. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_an_stmt. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  result = (struct zx_sa_AuthnStatement_s *)zxid_mk_an_stmt(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_AuthnStatement_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_saml_resp) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_sp_Response_s *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_saml_resp. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  result = (struct zx_sp_Response_s *)zxid_mk_saml_resp(arg1);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sp_Response_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_xacml_resp) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_xac_Response_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_xacml_resp. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_xac_Response_s *)zxid_mk_xacml_resp(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_xac_Response_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_xacml_simple_at) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_xac_Attribute_s *arg2 = (struct zx_xac_Attribute_s *) 0 ;
  struct zx_str *arg3 = (struct zx_str *) 0 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_xac_Attribute_s *result = 0 ;
  zval **args[6];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 6) || (zend_get_parameters_array_ex(6, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_xacml_simple_at. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_xac_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_xacml_simple_at. Expected SWIGTYPE_p_zx_xac_Attribute_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_xacml_simple_at. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_xacml_simple_at. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_mk_xacml_simple_at. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_mk_xacml_simple_at. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_xac_Attribute_s *)zxid_mk_xacml_simple_at(arg1,arg2,arg3,arg4,arg5,arg6);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_xac_Attribute_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_az) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_xac_Attribute_s *arg2 = (struct zx_xac_Attribute_s *) 0 ;
  struct zx_xac_Attribute_s *arg3 = (struct zx_xac_Attribute_s *) 0 ;
  struct zx_xac_Attribute_s *arg4 = (struct zx_xac_Attribute_s *) 0 ;
  struct zx_xac_Attribute_s *arg5 = (struct zx_xac_Attribute_s *) 0 ;
  struct zx_xasp_XACMLAuthzDecisionQuery_s *result = 0 ;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_az. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_xac_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_az. Expected SWIGTYPE_p_zx_xac_Attribute_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_xac_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_az. Expected SWIGTYPE_p_zx_xac_Attribute_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_xac_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_az. Expected SWIGTYPE_p_zx_xac_Attribute_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_xac_Attribute_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_mk_az. Expected SWIGTYPE_p_zx_xac_Attribute_s");
    }
  }
  result = (struct zx_xasp_XACMLAuthzDecisionQuery_s *)zxid_mk_az(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_xasp_XACMLAuthzDecisionQuery_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_attribute) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_sa_Attribute_s *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_attribute. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (struct zx_sa_Attribute_s *)zxid_mk_attribute(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_sa_Attribute_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_di_query) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  struct zx_di_Query_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_di_query. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_di_Query_s *)zxid_mk_di_query(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_di_Query_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_addr) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_str *arg2 = (struct zx_str *) 0 ;
  struct zx_a_Address_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_addr. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_addr. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (struct zx_a_Address_s *)zxid_mk_addr(arg1,arg2);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_a_Address_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_select) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  int arg6 ;
  int arg7 ;
  int arg8 ;
  int arg9 ;
  struct zx_dap_Select_s *result = 0 ;
  zval **args[9];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 9) || (zend_get_parameters_array_ex(9, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_select. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[6]);
    arg7 = (int) Z_LVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[7]);
    arg8 = (int) Z_LVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[8]);
    arg9 = (int) Z_LVAL_PP(args[8]);
    /*@SWIG@*/;
  }
  result = (struct zx_dap_Select_s *)zxid_mk_dap_select(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_Select_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_query_item) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_dap_Select_s *arg2 = (struct zx_dap_Select_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  int arg8 ;
  int arg9 ;
  char *arg10 = (char *) 0 ;
  char *arg11 = (char *) 0 ;
  char *arg12 = (char *) 0 ;
  struct zx_dap_QueryItem_s *result = 0 ;
  zval **args[12];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 12) || (zend_get_parameters_array_ex(12, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_query_item. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_dap_Select_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_dap_query_item. Expected SWIGTYPE_p_zx_dap_Select_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[6]);
    arg7 = (int) Z_LVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[7]);
    arg8 = (int) Z_LVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[8]);
    arg9 = (int) Z_LVAL_PP(args[8]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[9]);
    arg10 = (char *) Z_STRVAL_PP(args[9]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[10]);
    arg11 = (char *) Z_STRVAL_PP(args[10]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[11]);
    arg12 = (char *) Z_STRVAL_PP(args[11]);
    /*@SWIG@*/;
  }
  result = (struct zx_dap_QueryItem_s *)zxid_mk_dap_query_item(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_QueryItem_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_testop) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  int arg6 ;
  int arg7 ;
  int arg8 ;
  int arg9 ;
  struct zx_dap_TestOp_s *result = 0 ;
  zval **args[9];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 9) || (zend_get_parameters_array_ex(9, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_testop. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[6]);
    arg7 = (int) Z_LVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[7]);
    arg8 = (int) Z_LVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[8]);
    arg9 = (int) Z_LVAL_PP(args[8]);
    /*@SWIG@*/;
  }
  result = (struct zx_dap_TestOp_s *)zxid_mk_dap_testop(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_TestOp_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_test_item) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_dap_TestOp_s *arg2 = (struct zx_dap_TestOp_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  struct zx_dap_TestItem_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_test_item. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_dap_TestOp_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_dap_test_item. Expected SWIGTYPE_p_zx_dap_TestOp_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_dap_TestItem_s *)zxid_mk_dap_test_item(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_TestItem_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_resquery) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_dap_Select_s *arg2 = (struct zx_dap_Select_s *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  int arg7 ;
  char *arg8 = (char *) 0 ;
  struct zx_dap_ResultQuery_s *result = 0 ;
  zval **args[8];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 8) || (zend_get_parameters_array_ex(8, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_resquery. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_dap_Select_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_dap_resquery. Expected SWIGTYPE_p_zx_dap_Select_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[6]);
    arg7 = (int) Z_LVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[7]);
    arg8 = (char *) Z_STRVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  result = (struct zx_dap_ResultQuery_s *)zxid_mk_dap_resquery(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_ResultQuery_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_subscription) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  struct zx_dap_ResultQuery_s *arg4 = (struct zx_dap_ResultQuery_s *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  char *arg8 = (char *) 0 ;
  int arg9 ;
  char *arg10 = (char *) 0 ;
  char *arg11 = (char *) 0 ;
  struct zx_dap_Subscription_s *result = 0 ;
  zval **args[11];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 11) || (zend_get_parameters_array_ex(11, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_subscription. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_dap_ResultQuery_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_dap_subscription. Expected SWIGTYPE_p_zx_dap_ResultQuery_s");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg7 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[7]);
    arg8 = (char *) Z_STRVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[8]);
    arg9 = (int) Z_LVAL_PP(args[8]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[9]);
    arg10 = (char *) Z_STRVAL_PP(args[9]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[10]);
    arg11 = (char *) Z_STRVAL_PP(args[10]);
    /*@SWIG@*/;
  }
  result = (struct zx_dap_Subscription_s *)zxid_mk_dap_subscription(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_Subscription_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_mk_dap_query) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zx_dap_TestItem_s *arg2 = (struct zx_dap_TestItem_s *) 0 ;
  struct zx_dap_QueryItem_s *arg3 = (struct zx_dap_QueryItem_s *) 0 ;
  struct zx_dap_Subscription_s *arg4 = (struct zx_dap_Subscription_s *) 0 ;
  struct zx_dap_Query_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_mk_dap_query. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zx_dap_TestItem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_mk_dap_query. Expected SWIGTYPE_p_zx_dap_TestItem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_dap_QueryItem_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_mk_dap_query. Expected SWIGTYPE_p_zx_dap_QueryItem_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_dap_Subscription_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_mk_dap_query. Expected SWIGTYPE_p_zx_dap_Subscription_s");
    }
  }
  result = (struct zx_dap_Query_s *)zxid_mk_dap_query(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_dap_Query_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_map_sec_mech) {
  struct zx_a_EndpointReference_s *arg1 = (struct zx_a_EndpointReference_s *) 0 ;
  int result;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_a_EndpointReference_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_map_sec_mech. Expected SWIGTYPE_p_zx_a_EndpointReference_s");
    }
  }
  result = (int)zxid_map_sec_mech(arg1);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_wsc_call) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  struct zx_a_EndpointReference_s *arg3 = (struct zx_a_EndpointReference_s *) 0 ;
  struct zx_e_Envelope_s *arg4 = (struct zx_e_Envelope_s *) 0 ;
  struct zx_e_Envelope_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_wsc_call. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_wsc_call. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_a_EndpointReference_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_wsc_call. Expected SWIGTYPE_p_zx_a_EndpointReference_s");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_e_Envelope_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_wsc_call. Expected SWIGTYPE_p_zx_e_Envelope_s");
    }
  }
  result = (struct zx_e_Envelope_s *)zxid_wsc_call(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_e_Envelope_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_new_envf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  void *arg3 = 0 ;
  struct zx_e_Envelope_s *result = 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_new_envf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (struct zx_e_Envelope_s *)zxid_new_envf(arg1,arg2,arg3);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_e_Envelope_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_callf) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  struct zx_e_Envelope_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_callf. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_callf. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_e_Envelope_s *)zxid_callf(arg1,arg2,arg3,arg4,arg5);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_e_Envelope_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_nice_sha1) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  struct zx_str *arg4 = (struct zx_str *) 0 ;
  struct zx_str *arg5 = (struct zx_str *) 0 ;
  int result;
  zval **args[5];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 5) || (zend_get_parameters_array_ex(5, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_nice_sha1. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_nice_sha1. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[4], (void **) &arg5, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 5 of zxid_nice_sha1. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (int)zxid_nice_sha1(arg1,arg2,arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_epr_path) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  struct zx_str *arg6 = (struct zx_str *) 0 ;
  struct zx_str *arg7 = (struct zx_str *) 0 ;
  int result;
  zval **args[7];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 7) || (zend_get_parameters_array_ex(7, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_epr_path. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[5], (void **) &arg6, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 6 of zxid_epr_path. Expected SWIGTYPE_p_zx_str");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[6], (void **) &arg7, SWIGTYPE_p_zx_str, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 7 of zxid_epr_path. Expected SWIGTYPE_p_zx_str");
    }
  }
  result = (int)zxid_epr_path(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_get_epr) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  struct zx_a_EndpointReference_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_get_epr. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_get_epr. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_a_EndpointReference_s *)zxid_get_epr(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_a_EndpointReference_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_find_epr) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  char *arg3 = (char *) 0 ;
  int arg4 ;
  struct zx_a_EndpointReference_s *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_find_epr. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_find_epr. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[3]);
    arg4 = (int) Z_LVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (struct zx_a_EndpointReference_s *)zxid_find_epr(arg1,arg2,arg3,arg4);
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zx_a_EndpointReference_s, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_cache_epr) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  struct zx_a_EndpointReference_s *arg3 = (struct zx_a_EndpointReference_s *) 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_cache_epr. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_cache_epr. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[2], (void **) &arg3, SWIGTYPE_p_zx_a_EndpointReference_s, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 3 of zxid_cache_epr. Expected SWIGTYPE_p_zx_a_EndpointReference_s");
    }
  }
  result = (int)zxid_cache_epr(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_snarf_eprs_from_ses) {
  struct zxid_conf *arg1 = (struct zxid_conf *) 0 ;
  struct zxid_ses *arg2 = (struct zxid_ses *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_conf, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_snarf_eprs_from_ses. Expected SWIGTYPE_p_zxid_conf");
    }
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[1], (void **) &arg2, SWIGTYPE_p_zxid_ses, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 2 of zxid_snarf_eprs_from_ses. Expected SWIGTYPE_p_zxid_ses");
    }
  }
  zxid_snarf_eprs_from_ses(arg1,arg2);
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_std_basis_64_set) {
  char *arg1 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
  }
  {
    if (arg1) strncpy(std_basis_64,arg1,64);
    else std_basis_64[0] = 0;
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_std_basis_64_get) {
  char *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (char *)(char *)std_basis_64;
  {
    RETVAL_STRINGL(result,64,1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_safe_basis_64_set) {
  char *arg1 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
  }
  {
    if (arg1) strncpy(safe_basis_64,arg1,64);
    else safe_basis_64[0] = 0;
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_safe_basis_64_get) {
  char *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (char *)(char *)safe_basis_64;
  {
    RETVAL_STRINGL(result,64,1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_std_index_64_set) {
  unsigned char *arg1 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_unsigned_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_std_index_64_set. Expected SWIGTYPE_p_unsigned_char");
    }
  }
  {
    size_t ii;
    unsigned char *b = (unsigned char *) zx_std_index_64;
    for (ii = 0; ii < (size_t)256; ii++) b[ii] = *((unsigned char *) arg1 + ii);
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_std_index_64_get) {
  unsigned char *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (unsigned char *)(unsigned char *)zx_std_index_64;
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_unsigned_char, 0);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_base64_fancy_raw) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  int arg5 ;
  int arg6 ;
  char *arg7 = (char *) 0 ;
  char arg8 ;
  char *result = 0 ;
  zval **args[8];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 8) || (zend_get_parameters_array_ex(8, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[4]);
    arg5 = (int) Z_LVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[5]);
    arg6 = (int) Z_LVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg7 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_CHAR_IN@*/
    convert_to_string_ex(args[7]);
    arg8 = (char) *Z_STRVAL_PP(args[7]);
    /*@SWIG@*/;
  }
  result = (char *)base64_fancy_raw(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_unbase64_raw) {
  char *arg1 = (char *) 0 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  unsigned char *arg4 = (unsigned char *) 0 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_unsigned_char, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of unbase64_raw. Expected SWIGTYPE_p_unsigned_char");
    }
  }
  result = (char *)unbase64_raw(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_sha1_safe_base64) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)sha1_safe_base64(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_zlib_raw_deflate) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_zlib_raw_deflate. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zx_zlib_raw_deflate. Expected SWIGTYPE_p_int");
    }
  }
  result = (char *)zx_zlib_raw_deflate(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_zlib_raw_inflate) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_zlib_raw_inflate. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zx_zlib_raw_inflate. Expected SWIGTYPE_p_int");
    }
  }
  result = (char *)zx_zlib_raw_inflate(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_url_encode_len) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  int result;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)zx_url_encode_len(arg1,arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_url_encode_raw) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *result = 0 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (char *)zx_url_encode_raw(arg1,arg2,arg3);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zx_url_encode) {
  struct zx_ctx *arg1 = (struct zx_ctx *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  int *arg4 = (int *) 0 ;
  char *result = 0 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zx_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zx_url_encode. Expected SWIGTYPE_p_zx_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zx_url_encode. Expected SWIGTYPE_p_int");
    }
  }
  result = (char *)zx_url_encode(arg1,arg2,arg3,arg4);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_read_all) {
  int arg1 ;
  char *arg2 = (char *) 0 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  int result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = (int)read_all(arg1,arg2,(char const *)arg3,arg4,arg5);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_name_from_path) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  void *arg4 = 0 ;
  int result;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)name_from_path(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_open_fd_from_path) {
  int arg1 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  void *arg5 = 0 ;
  fdtype result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[0]);
    arg1 = (int) Z_LVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  result = open_fd_from_path(arg1,arg2,arg3,arg4,arg5);
  {
    fdtype * resultobj = (fdtype *) emalloc(sizeof(fdtype));
    memmove(resultobj, &result, sizeof(fdtype));
    SWIG_SetPointerZval(return_value, (void *)resultobj, SWIGTYPE_p_fdtype, 1);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_read_all_fd) {
  fdtype arg1 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  int *arg4 = (int *) 0 ;
  int result;
  fdtype *tmp1 ;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    if(SWIG_ConvertPtr(*args[0], (void **) &tmp1, SWIGTYPE_p_fdtype, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of read_all_fd. Expected SWIGTYPE_p_fdtype");
    }
    arg1 = *tmp1;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, SWIGTYPE_p_int, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of read_all_fd. Expected SWIGTYPE_p_int");
    }
  }
  result = (int)read_all_fd(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_write_all_fd) {
  fdtype arg1 ;
  char *arg2 = (char *) 0 ;
  int arg3 ;
  int result;
  fdtype *tmp1 ;
  zval **args[3];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 3) || (zend_get_parameters_array_ex(3, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    if(SWIG_ConvertPtr(*args[0], (void **) &tmp1, SWIGTYPE_p_fdtype, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of write_all_fd. Expected SWIGTYPE_p_fdtype");
    }
    arg1 = *tmp1;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (int) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  result = (int)write_all_fd(arg1,arg2,arg3);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_write_all_path_fmt) {
  char *arg1 = (char *) 0 ;
  int arg2 ;
  char *arg3 = (char *) 0 ;
  char *arg4 = (char *) 0 ;
  char *arg5 = (char *) 0 ;
  char *arg6 = (char *) 0 ;
  char *arg7 = (char *) 0 ;
  void *arg8 = 0 ;
  int result;
  zval **args[7];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 7) || (zend_get_parameters_array_ex(7, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[0]);
    arg1 = (char *) Z_STRVAL_PP(args[0]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (int) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[2]);
    arg3 = (char *) Z_STRVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[3]);
    arg4 = (char *) Z_STRVAL_PP(args[3]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[4]);
    arg5 = (char *) Z_STRVAL_PP(args[4]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[5]);
    arg6 = (char *) Z_STRVAL_PP(args[5]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[6]);
    arg7 = (char *) Z_STRVAL_PP(args[6]);
    /*@SWIG@*/;
  }
  result = (int)write_all_path_fmt(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_close_file) {
  fdtype arg1 ;
  char *arg2 = (char *) 0 ;
  int result;
  fdtype *tmp1 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    if(SWIG_ConvertPtr(*args[0], (void **) &tmp1, SWIGTYPE_p_fdtype, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of close_file. Expected SWIGTYPE_p_fdtype");
    }
    arg1 = *tmp1;
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  result = (int)close_file(arg1,(char const *)arg2);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_curl_ctx_p_set) {
  struct zxid_curl_ctx *arg1 = (struct zxid_curl_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_curl_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_curl_ctx_p_set. Expected SWIGTYPE_p_zxid_curl_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->p) free((char*)arg1->p);
    if (arg2) {
      arg1->p = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->p,arg2);
    } else {
      arg1->p = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_curl_ctx_p_get) {
  struct zxid_curl_ctx *arg1 = (struct zxid_curl_ctx *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_curl_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_curl_ctx_p_get. Expected SWIGTYPE_p_zxid_curl_ctx");
    }
  }
  result = (char *) ((arg1)->p);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_curl_ctx_lim_set) {
  struct zxid_curl_ctx *arg1 = (struct zxid_curl_ctx *) 0 ;
  char *arg2 = (char *) 0 ;
  zval **args[2];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 2) || (zend_get_parameters_array_ex(2, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_curl_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_curl_ctx_lim_set. Expected SWIGTYPE_p_zxid_curl_ctx");
    }
  }
  {
    /*@SWIG:CONVERT_STRING_IN@*/
    convert_to_string_ex(args[1]);
    arg2 = (char *) Z_STRVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    if (arg1->lim) free((char*)arg1->lim);
    if (arg2) {
      arg1->lim = (char *) malloc(strlen(arg2)+1);
      strcpy((char*)arg1->lim,arg2);
    } else {
      arg1->lim = 0;
    }
  }
  
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_curl_ctx_lim_get) {
  struct zxid_curl_ctx *arg1 = (struct zxid_curl_ctx *) 0 ;
  char *result = 0 ;
  zval **args[1];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 1) || (zend_get_parameters_array_ex(1, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    /* typemap(in) SWIGTYPE * */
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, SWIGTYPE_p_zxid_curl_ctx, 0) < 0) {
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_curl_ctx_lim_get. Expected SWIGTYPE_p_zxid_curl_ctx");
    }
  }
  result = (char *) ((arg1)->lim);
  {
    if(!result) {
      ZVAL_NULL(return_value);
    } else {
      ZVAL_STRING(return_value,result, 1);
    }
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_new_zxid_curl_ctx) {
  struct zxid_curl_ctx *result = 0 ;
  zval **args[0];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 0) || (zend_get_parameters_array_ex(0, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  result = (struct zxid_curl_ctx *)(struct zxid_curl_ctx *) calloc(1, sizeof(struct zxid_curl_ctx));
  {
    SWIG_SetPointerZval(return_value, (void *)result, SWIGTYPE_p_zxid_curl_ctx, 1);
  }
  /* Wrap this return value */
  {
    /* ALTERNATIVE Constructor, make an object wrapper */
    zval *obj, *_cPtr;
    MAKE_STD_ZVAL(obj);
    MAKE_STD_ZVAL(_cPtr);
    *_cPtr = *return_value;
    INIT_ZVAL(*return_value);
    *return_value=*_cPtr;
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* This function is designed to be called by the zend list destructors */
/* to typecast and do the actual destruction */
void __wrap_delete_zxid_curl_ctx(zend_rsrc_list_entry *rsrc, const char *type_name TSRMLS_DC) {
  swig_object_wrapper *value=(swig_object_wrapper *) rsrc->ptr ;
  void *ptr=value->ptr ;
  int newobject=value->newobject ;
  struct zxid_curl_ctx *arg1 = (struct zxid_curl_ctx *) 0 ;
  
  efree(value);
  if (! newobject) return; /* can't delete it! */
  SWIG_ZTS_ConvertResourceData(ptr,rsrc->type,type_name,(void **) &arg1,SWIGTYPE_p_zxid_curl_ctx TSRMLS_CC);
  if (! arg1) zend_error(E_ERROR, "zxid_curl_ctx resource already free'd");
  free((char *) arg1);
  
}


ZEND_NAMED_FUNCTION(_wrap_zxid_curl_write_data) {
  void *arg1 = (void *) 0 ;
  size_t arg2 ;
  size_t arg3 ;
  void *arg4 = (void *) 0 ;
  size_t result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, 0, 0) < 0) {
      /* Allow NULL from php for void* */
      if ((*args[0])->type==IS_NULL) arg1=0;
      else
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_curl_write_data. Expected SWIGTYPE_p_p_void");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (size_t) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (size_t) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, 0, 0) < 0) {
      /* Allow NULL from php for void* */
      if ((*args[3])->type==IS_NULL) arg4=0;
      else
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_curl_write_data. Expected SWIGTYPE_p_p_void");
    }
  }
  result = zxid_curl_write_data(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


ZEND_NAMED_FUNCTION(_wrap_zxid_curl_read_data) {
  void *arg1 = (void *) 0 ;
  size_t arg2 ;
  size_t arg3 ;
  void *arg4 = (void *) 0 ;
  size_t result;
  zval **args[4];
  
  SWIG_ResetError();
  if(((ZEND_NUM_ARGS() )!= 4) || (zend_get_parameters_array_ex(4, args)!= SUCCESS)) {
    WRONG_PARAM_COUNT;
  }
  
  {
    if(SWIG_ConvertPtr(*args[0], (void **) &arg1, 0, 0) < 0) {
      /* Allow NULL from php for void* */
      if ((*args[0])->type==IS_NULL) arg1=0;
      else
      SWIG_PHP_Error(E_ERROR, "Type error in argument 1 of zxid_curl_read_data. Expected SWIGTYPE_p_p_void");
    }
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[1]);
    arg2 = (size_t) Z_LVAL_PP(args[1]);
    /*@SWIG@*/;
  }
  {
    /*@SWIG:CONVERT_INT_IN@*/
    convert_to_long_ex(args[2]);
    arg3 = (size_t) Z_LVAL_PP(args[2]);
    /*@SWIG@*/;
  }
  {
    if(SWIG_ConvertPtr(*args[3], (void **) &arg4, 0, 0) < 0) {
      /* Allow NULL from php for void* */
      if ((*args[3])->type==IS_NULL) arg4=0;
      else
      SWIG_PHP_Error(E_ERROR, "Type error in argument 4 of zxid_curl_read_data. Expected SWIGTYPE_p_p_void");
    }
  }
  result = zxid_curl_read_data(arg1,arg2,arg3,arg4);
  {
    ZVAL_LONG(return_value,result);
  }
  return;
fail:
  zend_error(ErrorCode(),ErrorMsg());
}


/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_f_p_void__void) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_need) {
  /* has destructor: __wrap_delete_zxid_need */
  __wrap_delete_zxid_need(rsrc, SWIGTYPE_p_zxid_need->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_str) {
  /* has destructor: __wrap_delete_zx_str */
  __wrap_delete_zx_str(rsrc, SWIGTYPE_p_zx_str->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_TestItem_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_atsrc) {
  /* has destructor: __wrap_delete_zxid_atsrc */
  __wrap_delete_zxid_atsrc(rsrc, SWIGTYPE_p_zxid_atsrc->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_TestOp_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_ds_Reference_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_a_EndpointReference_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_xac_Response_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_Response_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_LogoutResponse_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_ManageNameIDResponse_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_curl_ctx) {
  /* has destructor: __wrap_delete_zxid_curl_ctx */
  __wrap_delete_zxid_curl_ctx(rsrc, SWIGTYPE_p_zxid_curl_ctx->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_SPSSODescriptor_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_IDPSSODescriptor_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_KeyDescriptor_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_EntityDescriptor_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_node_s) {
  /* has destructor: __wrap_delete_zx_node_s */
  __wrap_delete_zx_node_s(rsrc, SWIGTYPE_p_zx_node_s->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_timeval) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_entity) {
  /* has destructor: __wrap_delete_zxid_entity */
  __wrap_delete_zxid_entity(rsrc, SWIGTYPE_p_zxid_entity->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_f_p_void_size_t__p_void) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_f_size_t__p_void) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_void) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_void) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_fdtype) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_X509) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_int) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_e_Envelope_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_EncryptedAssertion_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_Assertion_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa11_Assertion_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_ff12_Assertion_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_Subscription_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_e_Body_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_ses) {
  /* has destructor: __wrap_delete_zxid_ses */
  __wrap_delete_zxid_ses(rsrc, SWIGTYPE_p_zxid_ses->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_Issuer_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_Select_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_any_attr_s) {
  /* has destructor: __wrap_delete_zx_any_attr_s */
  __wrap_delete_zx_any_attr_s(rsrc, SWIGTYPE_p_zx_any_attr_s->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_time_t) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_NameID_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_attr) {
  /* has destructor: __wrap_delete_zxid_attr */
  __wrap_delete_zxid_attr(rsrc, SWIGTYPE_p_zxid_attr->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_any_elem_s) {
  /* has destructor: __wrap_delete_zx_any_elem_s */
  __wrap_delete_zx_any_elem_s(rsrc, SWIGTYPE_p_zx_any_elem_s->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_elem_s) {
  /* has destructor: __wrap_delete_zx_elem_s */
  __wrap_delete_zx_elem_s(rsrc, SWIGTYPE_p_zx_elem_s->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_int) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_a_Address_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_AssertionConsumerService_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_ManageNameIDService_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_SingleLogoutService_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_SingleSignOnService_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_md_ArtifactResolutionService_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_char) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_char) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_ArtifactResolve_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_cgi) {
  /* has destructor: __wrap_delete_zxid_cgi */
  __wrap_delete_zxid_cgi(rsrc, SWIGTYPE_p_zxid_cgi->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_zx_xenc_EncryptedKey_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_xenc_EncryptedKey_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_conf) {
  /* has destructor: __wrap_delete_zxid_conf */
  __wrap_delete_zxid_conf(rsrc, SWIGTYPE_p_zxid_conf->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_QueryItem_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_ctx) {
  /* has destructor: __wrap_delete_zx_ctx */
  __wrap_delete_zx_ctx(rsrc, SWIGTYPE_p_zx_ctx->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_xasa_XACMLAuthzDecisionStatement_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_AttributeStatement_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_AuthnStatement_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_xac_Attribute_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_Attribute_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_ds_KeyInfo_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_ds_Signature_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_Subject_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_ManageNameIDRequest_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_LogoutRequest_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_AuthnRequest_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_ns_s) {
  /* has destructor: __wrap_delete_zx_ns_s */
  __wrap_delete_zx_ns_s(rsrc, SWIGTYPE_p_zx_ns_s->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_p_zx_ns_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_xasp_XACMLAuthzDecisionQuery_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_di_Query_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_ResultQuery_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_dap_Query_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_unsigned_char) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_e_Header_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_root_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_Status_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sp_NewEncryptedID_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_sa_EncryptedID_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_xenc_EncryptedData_s) {
  /* bah! No destructor for this simple type!! */
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_cstr_list) {
  /* has destructor: __wrap_delete_zxid_cstr_list */
  __wrap_delete_zxid_cstr_list(rsrc, SWIGTYPE_p_zxid_cstr_list->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zx_tok) {
  /* has destructor: __wrap_delete_zx_tok */
  __wrap_delete_zx_tok(rsrc, SWIGTYPE_p_zx_tok->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxsig_ref) {
  /* has destructor: __wrap_delete_zxsig_ref */
  __wrap_delete_zxsig_ref(rsrc, SWIGTYPE_p_zxsig_ref->name TSRMLS_CC);
}
/* NEW Destructor style */
static ZEND_RSRC_DTOR_FUNC(_wrap_destroy_p_zxid_map) {
  /* has destructor: __wrap_delete_zxid_map */
  __wrap_delete_zxid_map(rsrc, SWIGTYPE_p_zxid_map->name TSRMLS_CC);
}
/* end wrapper section */
/* init section */
#ifdef __cplusplus
extern "C" {
#endif
ZEND_GET_MODULE(zxid)
#ifdef __cplusplus
}
#endif

#define SWIG_php_minit PHP_MINIT_FUNCTION(zxid)
/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is tough by the requirement that no dynamic 
 * memory is used. Also, since swig_type_info structures store pointers to 
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization. 
 * The idea is that swig generates all the structures that are needed. 
 * The runtime then collects these partially filled structures. 
 * The SWIG_InitializeModule function takes these initial arrays out of 
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned staticly to an initial 
 * array. We just loop though that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast linked list. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it 
 * adding the casts to the list. The one last trick we need to do is making
 * sure the type pointer in the swig_cast_info struct is correct.
 *
 * First off, we lookup the cast->type name to see if it is already loaded. 
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the 
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the linked list (because the cast->type) pointer will
 *     be correct.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif

SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
  size_t i;
  swig_module_info *module_head;
  static int init_run = 0;

  clientdata = clientdata;

  if (init_run) return;
  init_run = 1;

  /* Initialize the swig_module */
  swig_module.type_initial = swig_type_initial;
  swig_module.cast_initial = swig_cast_initial;

  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (module_head) {
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  } else {
    /* This is the first module loaded */
    swig_module.next = &swig_module;
    SWIG_SetModule(clientdata, &swig_module);
  }
		 
  /* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *ret;
    swig_cast_info *cast;
  
#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
#endif

    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
      if (swig_module.type_initial[i]->clientdata) {
	type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
      }
    } else {
      type = swig_module.type_initial[i];
    }

    /* Insert casting types */
    cast = swig_module.cast_initial[i];
    while (cast->type) {
    
      /* Don't need to add information already in the list */
      ret = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
	if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
      }
      if (ret) {
	if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
	  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
	  cast->type = ret;
	  ret = 0;
	} else {
	  /* Check for casting already in the list */
	  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
	  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
	  if (!ocast) ret = 0;
	}
      }

      if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
	printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = cast;
      }
      cast++;
    }
    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
  swig_module.types[i] = 0;

#ifdef SWIGRUNTIME_DEBUG
  printf("**** SWIG_InitializeModule: Cast List ******\n");
  for (i = 0; i < swig_module.size; ++i) {
    int j = 0;
    swig_cast_info *cast = swig_module.cast_initial[i];
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
    while (cast->type) {
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
      cast++;
      ++j;
    }
  printf("---- Total casts: %d\n",j);
  }
  printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  swig_cast_info *equiv;
  static int init_run = 0;

  if (init_run) return;
  init_run = 1;

  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
            SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{ /* c-mode */
#endif
}
#endif


  SWIG_php_minit {
    SWIG_InitializeModule(0);

/* oinit subsection */
ZEND_INIT_MODULE_GLOBALS(zxid, zxid_init_globals, zxid_destroy_globals);

/* Register resource destructors for pointer types */
le_swig__p_f_p_void__void=zend_register_list_destructors_ex(_wrap_destroy_p_f_p_void__void,NULL,(char *)(SWIGTYPE_p_f_p_void__void->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_f_p_void__void,&le_swig__p_f_p_void__void);
le_swig__p_zxid_need=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_need,NULL,(char *)(SWIGTYPE_p_zxid_need->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_need,&le_swig__p_zxid_need);
le_swig__p_zx_str=zend_register_list_destructors_ex(_wrap_destroy_p_zx_str,NULL,(char *)(SWIGTYPE_p_zx_str->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_str,&le_swig__p_zx_str);
le_swig__p_zx_dap_TestItem_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_TestItem_s,NULL,(char *)(SWIGTYPE_p_zx_dap_TestItem_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_TestItem_s,&le_swig__p_zx_dap_TestItem_s);
le_swig__p_zxid_atsrc=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_atsrc,NULL,(char *)(SWIGTYPE_p_zxid_atsrc->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_atsrc,&le_swig__p_zxid_atsrc);
le_swig__p_zx_dap_TestOp_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_TestOp_s,NULL,(char *)(SWIGTYPE_p_zx_dap_TestOp_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_TestOp_s,&le_swig__p_zx_dap_TestOp_s);
le_swig__p_zx_ds_Reference_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_ds_Reference_s,NULL,(char *)(SWIGTYPE_p_zx_ds_Reference_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_ds_Reference_s,&le_swig__p_zx_ds_Reference_s);
le_swig__p_zx_a_EndpointReference_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_a_EndpointReference_s,NULL,(char *)(SWIGTYPE_p_zx_a_EndpointReference_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_a_EndpointReference_s,&le_swig__p_zx_a_EndpointReference_s);
le_swig__p_zx_xac_Response_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_xac_Response_s,NULL,(char *)(SWIGTYPE_p_zx_xac_Response_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_xac_Response_s,&le_swig__p_zx_xac_Response_s);
le_swig__p_zx_sp_Response_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_Response_s,NULL,(char *)(SWIGTYPE_p_zx_sp_Response_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_Response_s,&le_swig__p_zx_sp_Response_s);
le_swig__p_zx_sp_LogoutResponse_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_LogoutResponse_s,NULL,(char *)(SWIGTYPE_p_zx_sp_LogoutResponse_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_LogoutResponse_s,&le_swig__p_zx_sp_LogoutResponse_s);
le_swig__p_zx_sp_ManageNameIDResponse_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_ManageNameIDResponse_s,NULL,(char *)(SWIGTYPE_p_zx_sp_ManageNameIDResponse_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_ManageNameIDResponse_s,&le_swig__p_zx_sp_ManageNameIDResponse_s);
le_swig__p_zxid_curl_ctx=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_curl_ctx,NULL,(char *)(SWIGTYPE_p_zxid_curl_ctx->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_curl_ctx,&le_swig__p_zxid_curl_ctx);
le_swig__p_zx_md_SPSSODescriptor_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_SPSSODescriptor_s,NULL,(char *)(SWIGTYPE_p_zx_md_SPSSODescriptor_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_SPSSODescriptor_s,&le_swig__p_zx_md_SPSSODescriptor_s);
le_swig__p_zx_md_IDPSSODescriptor_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_IDPSSODescriptor_s,NULL,(char *)(SWIGTYPE_p_zx_md_IDPSSODescriptor_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_IDPSSODescriptor_s,&le_swig__p_zx_md_IDPSSODescriptor_s);
le_swig__p_zx_md_KeyDescriptor_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_KeyDescriptor_s,NULL,(char *)(SWIGTYPE_p_zx_md_KeyDescriptor_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_KeyDescriptor_s,&le_swig__p_zx_md_KeyDescriptor_s);
le_swig__p_zx_md_EntityDescriptor_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_EntityDescriptor_s,NULL,(char *)(SWIGTYPE_p_zx_md_EntityDescriptor_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_EntityDescriptor_s,&le_swig__p_zx_md_EntityDescriptor_s);
le_swig__p_zx_node_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_node_s,NULL,(char *)(SWIGTYPE_p_zx_node_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_node_s,&le_swig__p_zx_node_s);
le_swig__p_timeval=zend_register_list_destructors_ex(_wrap_destroy_p_timeval,NULL,(char *)(SWIGTYPE_p_timeval->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_timeval,&le_swig__p_timeval);
le_swig__p_zxid_entity=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_entity,NULL,(char *)(SWIGTYPE_p_zxid_entity->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_entity,&le_swig__p_zxid_entity);
le_swig__p_f_p_void_size_t__p_void=zend_register_list_destructors_ex(_wrap_destroy_p_f_p_void_size_t__p_void,NULL,(char *)(SWIGTYPE_p_f_p_void_size_t__p_void->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_f_p_void_size_t__p_void,&le_swig__p_f_p_void_size_t__p_void);
le_swig__p_f_size_t__p_void=zend_register_list_destructors_ex(_wrap_destroy_p_f_size_t__p_void,NULL,(char *)(SWIGTYPE_p_f_size_t__p_void->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_f_size_t__p_void,&le_swig__p_f_size_t__p_void);
le_swig__p_void=zend_register_list_destructors_ex(_wrap_destroy_p_void,NULL,(char *)(SWIGTYPE_p_void->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_void,&le_swig__p_void);
le_swig__p_p_void=zend_register_list_destructors_ex(_wrap_destroy_p_p_void,NULL,(char *)(SWIGTYPE_p_p_void->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_p_void,&le_swig__p_p_void);
le_swig__p_fdtype=zend_register_list_destructors_ex(_wrap_destroy_p_fdtype,NULL,(char *)(SWIGTYPE_p_fdtype->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_fdtype,&le_swig__p_fdtype);
le_swig__p_X509=zend_register_list_destructors_ex(_wrap_destroy_p_X509,NULL,(char *)(SWIGTYPE_p_X509->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_X509,&le_swig__p_X509);
le_swig__p_int=zend_register_list_destructors_ex(_wrap_destroy_p_int,NULL,(char *)(SWIGTYPE_p_int->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_int,&le_swig__p_int);
le_swig__p_zx_e_Envelope_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_e_Envelope_s,NULL,(char *)(SWIGTYPE_p_zx_e_Envelope_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_e_Envelope_s,&le_swig__p_zx_e_Envelope_s);
le_swig__p_zx_sa_EncryptedAssertion_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_EncryptedAssertion_s,NULL,(char *)(SWIGTYPE_p_zx_sa_EncryptedAssertion_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_EncryptedAssertion_s,&le_swig__p_zx_sa_EncryptedAssertion_s);
le_swig__p_zx_sa_Assertion_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_Assertion_s,NULL,(char *)(SWIGTYPE_p_zx_sa_Assertion_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_Assertion_s,&le_swig__p_zx_sa_Assertion_s);
le_swig__p_zx_sa11_Assertion_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa11_Assertion_s,NULL,(char *)(SWIGTYPE_p_zx_sa11_Assertion_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa11_Assertion_s,&le_swig__p_zx_sa11_Assertion_s);
le_swig__p_zx_ff12_Assertion_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_ff12_Assertion_s,NULL,(char *)(SWIGTYPE_p_zx_ff12_Assertion_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_ff12_Assertion_s,&le_swig__p_zx_ff12_Assertion_s);
le_swig__p_zx_dap_Subscription_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_Subscription_s,NULL,(char *)(SWIGTYPE_p_zx_dap_Subscription_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_Subscription_s,&le_swig__p_zx_dap_Subscription_s);
le_swig__p_zx_e_Body_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_e_Body_s,NULL,(char *)(SWIGTYPE_p_zx_e_Body_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_e_Body_s,&le_swig__p_zx_e_Body_s);
le_swig__p_zxid_ses=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_ses,NULL,(char *)(SWIGTYPE_p_zxid_ses->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_ses,&le_swig__p_zxid_ses);
le_swig__p_zx_sa_Issuer_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_Issuer_s,NULL,(char *)(SWIGTYPE_p_zx_sa_Issuer_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_Issuer_s,&le_swig__p_zx_sa_Issuer_s);
le_swig__p_zx_dap_Select_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_Select_s,NULL,(char *)(SWIGTYPE_p_zx_dap_Select_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_Select_s,&le_swig__p_zx_dap_Select_s);
le_swig__p_zx_any_attr_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_any_attr_s,NULL,(char *)(SWIGTYPE_p_zx_any_attr_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_any_attr_s,&le_swig__p_zx_any_attr_s);
le_swig__p_time_t=zend_register_list_destructors_ex(_wrap_destroy_p_time_t,NULL,(char *)(SWIGTYPE_p_time_t->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_time_t,&le_swig__p_time_t);
le_swig__p_zx_sa_NameID_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_NameID_s,NULL,(char *)(SWIGTYPE_p_zx_sa_NameID_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_NameID_s,&le_swig__p_zx_sa_NameID_s);
le_swig__p_zxid_attr=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_attr,NULL,(char *)(SWIGTYPE_p_zxid_attr->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_attr,&le_swig__p_zxid_attr);
le_swig__p_zx_any_elem_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_any_elem_s,NULL,(char *)(SWIGTYPE_p_zx_any_elem_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_any_elem_s,&le_swig__p_zx_any_elem_s);
le_swig__p_zx_elem_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_elem_s,NULL,(char *)(SWIGTYPE_p_zx_elem_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_elem_s,&le_swig__p_zx_elem_s);
le_swig__int=zend_register_list_destructors_ex(_wrap_destroy_int,NULL,(char *)(SWIGTYPE_int->name),module_number);
SWIG_TypeClientData(SWIGTYPE_int,&le_swig__int);
le_swig__p_zx_a_Address_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_a_Address_s,NULL,(char *)(SWIGTYPE_p_zx_a_Address_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_a_Address_s,&le_swig__p_zx_a_Address_s);
le_swig__p_zx_md_AssertionConsumerService_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_AssertionConsumerService_s,NULL,(char *)(SWIGTYPE_p_zx_md_AssertionConsumerService_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_AssertionConsumerService_s,&le_swig__p_zx_md_AssertionConsumerService_s);
le_swig__p_zx_md_ManageNameIDService_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_ManageNameIDService_s,NULL,(char *)(SWIGTYPE_p_zx_md_ManageNameIDService_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_ManageNameIDService_s,&le_swig__p_zx_md_ManageNameIDService_s);
le_swig__p_zx_md_SingleLogoutService_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_SingleLogoutService_s,NULL,(char *)(SWIGTYPE_p_zx_md_SingleLogoutService_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_SingleLogoutService_s,&le_swig__p_zx_md_SingleLogoutService_s);
le_swig__p_zx_md_SingleSignOnService_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_SingleSignOnService_s,NULL,(char *)(SWIGTYPE_p_zx_md_SingleSignOnService_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_SingleSignOnService_s,&le_swig__p_zx_md_SingleSignOnService_s);
le_swig__p_zx_md_ArtifactResolutionService_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_md_ArtifactResolutionService_s,NULL,(char *)(SWIGTYPE_p_zx_md_ArtifactResolutionService_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_md_ArtifactResolutionService_s,&le_swig__p_zx_md_ArtifactResolutionService_s);
le_swig__p_p_char=zend_register_list_destructors_ex(_wrap_destroy_p_p_char,NULL,(char *)(SWIGTYPE_p_p_char->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_p_char,&le_swig__p_p_char);
le_swig__p_char=zend_register_list_destructors_ex(_wrap_destroy_p_char,NULL,(char *)(SWIGTYPE_p_char->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_char,&le_swig__p_char);
le_swig__p_zx_sp_ArtifactResolve_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_ArtifactResolve_s,NULL,(char *)(SWIGTYPE_p_zx_sp_ArtifactResolve_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_ArtifactResolve_s,&le_swig__p_zx_sp_ArtifactResolve_s);
le_swig__p_zxid_cgi=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_cgi,NULL,(char *)(SWIGTYPE_p_zxid_cgi->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_cgi,&le_swig__p_zxid_cgi);
le_swig__p_p_zx_xenc_EncryptedKey_s=zend_register_list_destructors_ex(_wrap_destroy_p_p_zx_xenc_EncryptedKey_s,NULL,(char *)(SWIGTYPE_p_p_zx_xenc_EncryptedKey_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_p_zx_xenc_EncryptedKey_s,&le_swig__p_p_zx_xenc_EncryptedKey_s);
le_swig__p_zx_xenc_EncryptedKey_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_xenc_EncryptedKey_s,NULL,(char *)(SWIGTYPE_p_zx_xenc_EncryptedKey_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_xenc_EncryptedKey_s,&le_swig__p_zx_xenc_EncryptedKey_s);
le_swig__p_zxid_conf=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_conf,NULL,(char *)(SWIGTYPE_p_zxid_conf->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_conf,&le_swig__p_zxid_conf);
le_swig__p_zx_dap_QueryItem_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_QueryItem_s,NULL,(char *)(SWIGTYPE_p_zx_dap_QueryItem_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_QueryItem_s,&le_swig__p_zx_dap_QueryItem_s);
le_swig__p_zx_ctx=zend_register_list_destructors_ex(_wrap_destroy_p_zx_ctx,NULL,(char *)(SWIGTYPE_p_zx_ctx->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_ctx,&le_swig__p_zx_ctx);
le_swig__p_zx_xasa_XACMLAuthzDecisionStatement_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_xasa_XACMLAuthzDecisionStatement_s,NULL,(char *)(SWIGTYPE_p_zx_xasa_XACMLAuthzDecisionStatement_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_xasa_XACMLAuthzDecisionStatement_s,&le_swig__p_zx_xasa_XACMLAuthzDecisionStatement_s);
le_swig__p_zx_sa_AttributeStatement_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_AttributeStatement_s,NULL,(char *)(SWIGTYPE_p_zx_sa_AttributeStatement_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_AttributeStatement_s,&le_swig__p_zx_sa_AttributeStatement_s);
le_swig__p_zx_sa_AuthnStatement_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_AuthnStatement_s,NULL,(char *)(SWIGTYPE_p_zx_sa_AuthnStatement_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_AuthnStatement_s,&le_swig__p_zx_sa_AuthnStatement_s);
le_swig__p_zx_xac_Attribute_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_xac_Attribute_s,NULL,(char *)(SWIGTYPE_p_zx_xac_Attribute_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_xac_Attribute_s,&le_swig__p_zx_xac_Attribute_s);
le_swig__p_zx_sa_Attribute_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_Attribute_s,NULL,(char *)(SWIGTYPE_p_zx_sa_Attribute_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_Attribute_s,&le_swig__p_zx_sa_Attribute_s);
le_swig__p_zx_ds_KeyInfo_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_ds_KeyInfo_s,NULL,(char *)(SWIGTYPE_p_zx_ds_KeyInfo_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_ds_KeyInfo_s,&le_swig__p_zx_ds_KeyInfo_s);
le_swig__p_zx_ds_Signature_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_ds_Signature_s,NULL,(char *)(SWIGTYPE_p_zx_ds_Signature_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_ds_Signature_s,&le_swig__p_zx_ds_Signature_s);
le_swig__p_zx_sa_Subject_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_Subject_s,NULL,(char *)(SWIGTYPE_p_zx_sa_Subject_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_Subject_s,&le_swig__p_zx_sa_Subject_s);
le_swig__p_zx_sp_ManageNameIDRequest_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_ManageNameIDRequest_s,NULL,(char *)(SWIGTYPE_p_zx_sp_ManageNameIDRequest_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_ManageNameIDRequest_s,&le_swig__p_zx_sp_ManageNameIDRequest_s);
le_swig__p_zx_sp_LogoutRequest_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_LogoutRequest_s,NULL,(char *)(SWIGTYPE_p_zx_sp_LogoutRequest_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_LogoutRequest_s,&le_swig__p_zx_sp_LogoutRequest_s);
le_swig__p_zx_sp_AuthnRequest_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_AuthnRequest_s,NULL,(char *)(SWIGTYPE_p_zx_sp_AuthnRequest_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_AuthnRequest_s,&le_swig__p_zx_sp_AuthnRequest_s);
le_swig__p_zx_ns_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_ns_s,NULL,(char *)(SWIGTYPE_p_zx_ns_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_ns_s,&le_swig__p_zx_ns_s);
le_swig__p_p_zx_ns_s=zend_register_list_destructors_ex(_wrap_destroy_p_p_zx_ns_s,NULL,(char *)(SWIGTYPE_p_p_zx_ns_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_p_zx_ns_s,&le_swig__p_p_zx_ns_s);
le_swig__p_zx_xasp_XACMLAuthzDecisionQuery_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_xasp_XACMLAuthzDecisionQuery_s,NULL,(char *)(SWIGTYPE_p_zx_xasp_XACMLAuthzDecisionQuery_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_xasp_XACMLAuthzDecisionQuery_s,&le_swig__p_zx_xasp_XACMLAuthzDecisionQuery_s);
le_swig__p_zx_di_Query_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_di_Query_s,NULL,(char *)(SWIGTYPE_p_zx_di_Query_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_di_Query_s,&le_swig__p_zx_di_Query_s);
le_swig__p_zx_dap_ResultQuery_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_ResultQuery_s,NULL,(char *)(SWIGTYPE_p_zx_dap_ResultQuery_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_ResultQuery_s,&le_swig__p_zx_dap_ResultQuery_s);
le_swig__p_zx_dap_Query_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_dap_Query_s,NULL,(char *)(SWIGTYPE_p_zx_dap_Query_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_dap_Query_s,&le_swig__p_zx_dap_Query_s);
le_swig__p_unsigned_char=zend_register_list_destructors_ex(_wrap_destroy_p_unsigned_char,NULL,(char *)(SWIGTYPE_p_unsigned_char->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_unsigned_char,&le_swig__p_unsigned_char);
le_swig__p_zx_e_Header_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_e_Header_s,NULL,(char *)(SWIGTYPE_p_zx_e_Header_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_e_Header_s,&le_swig__p_zx_e_Header_s);
le_swig__p_zx_root_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_root_s,NULL,(char *)(SWIGTYPE_p_zx_root_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_root_s,&le_swig__p_zx_root_s);
le_swig__p_zx_sp_Status_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_Status_s,NULL,(char *)(SWIGTYPE_p_zx_sp_Status_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_Status_s,&le_swig__p_zx_sp_Status_s);
le_swig__p_zx_sp_NewEncryptedID_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sp_NewEncryptedID_s,NULL,(char *)(SWIGTYPE_p_zx_sp_NewEncryptedID_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sp_NewEncryptedID_s,&le_swig__p_zx_sp_NewEncryptedID_s);
le_swig__p_zx_sa_EncryptedID_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_sa_EncryptedID_s,NULL,(char *)(SWIGTYPE_p_zx_sa_EncryptedID_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_sa_EncryptedID_s,&le_swig__p_zx_sa_EncryptedID_s);
le_swig__p_zx_xenc_EncryptedData_s=zend_register_list_destructors_ex(_wrap_destroy_p_zx_xenc_EncryptedData_s,NULL,(char *)(SWIGTYPE_p_zx_xenc_EncryptedData_s->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_xenc_EncryptedData_s,&le_swig__p_zx_xenc_EncryptedData_s);
le_swig__p_zxid_cstr_list=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_cstr_list,NULL,(char *)(SWIGTYPE_p_zxid_cstr_list->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_cstr_list,&le_swig__p_zxid_cstr_list);
le_swig__p_zx_tok=zend_register_list_destructors_ex(_wrap_destroy_p_zx_tok,NULL,(char *)(SWIGTYPE_p_zx_tok->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zx_tok,&le_swig__p_zx_tok);
le_swig__p_zxsig_ref=zend_register_list_destructors_ex(_wrap_destroy_p_zxsig_ref,NULL,(char *)(SWIGTYPE_p_zxsig_ref->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxsig_ref,&le_swig__p_zxsig_ref);
le_swig__p_zxid_map=zend_register_list_destructors_ex(_wrap_destroy_p_zxid_map,NULL,(char *)(SWIGTYPE_p_zxid_map->name),module_number);
SWIG_TypeClientData(SWIGTYPE_p_zxid_map,&le_swig__p_zxid_map);
CG(active_class_entry) = NULL;
/* end oinit subsection */

    return SUCCESS;
}
PHP_RINIT_FUNCTION(zxid)
{
/* rinit section */

/* cinit subsection */
REGISTER_LONG_CONSTANT( "ZXERR_EOF", 0x0001, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_MISMATCH_CLOSE", 0x0002, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_BAD_ATTR_NS", 0x0004, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_BAD_ELEM_NS", 0x0008, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_MISSING_ATTR", 0x0010, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_EXTRA_ATTR", 0x0020, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_MISSING_ELEM", 0x0040, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_EXTRA_ELEM", 0x0080, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_ELEM_ORDER", 0x0100, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_BAD_NS_PREFIX", 0x0200, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_TAG_NOT_CLOSED", 0x0400, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_MASK", 0x7fff, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXERR_ATTR_FLAG", 0x8000, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZX_TOK_XMLNS", (-4), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZX_TOK_DATA", (-3), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZX_TOK_NOT_FOUND", (-2), CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SIG_ALGO_RSA_SHA1", "http://www.w3.org/2000/09/xmldsig#rsa-sha1", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SIG_ALGO_DSA_SHA1", "http://www.w3.org/2000/09/xmldsig#dsa-sha1", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SIG_ALGO", "http://www.w3.org/2000/09/xmldsig#rsa-sha1", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("DIGEST_ALGO", "http://www.w3.org/2000/09/xmldsig#sha1", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("CANON_ALGO", "http://www.w3.org/2001/10/xml-exc-c14n#", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENVELOPED_ALGO", "http://www.w3.org/2000/09/xmldsig#enveloped-signature", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_ALGO_TRIPLEDES_CBC", "http://www.w3.org/2001/04/xmlenc#tripledes-cbc", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_ALGO_AES128_CBC", "http://www.w3.org/2001/04/xmlenc#aes128-cbc", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_ALGO_AES192_CBC", "http://www.w3.org/2001/04/xmlenc#aes192-cbc", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_ALGO_AES256_CBC", "http://www.w3.org/2001/04/xmlenc#aes256-cbc", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_ALGO", "http://www.w3.org/2001/04/xmlenc#aes128-cbc", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_KEYTRAN_RSA_1_5", "http://www.w3.org/2001/04/xmlenc#rsa-1_5", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_KEYTRAN_RSA_OAEP", "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_KEYTRAN_ALGO", "http://www.w3.org/2001/04/xmlenc#rsa-1_5", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_ENCKEY_METH", "http://www.w3.org/2001/04/xmlenc#EncryptedKey", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_TYPE_ELEMENT", "http://www.w3.org/2001/04/xmlenc#Element", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ENC_TYPE_CONTENT", "http://www.w3.org/2001/04/xmlenc#Content", CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CONF_MAGIC", 0x900dc07f, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CGI_MAGIC", 0x900d0c91, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SES_MAGIC", 0x900d05e5, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_RENAME", 0, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_DEL", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_RESET", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_FEIDEDEC", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_FEIDEENC", 4, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_UNSB64_INF", 5, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_DEF_SB64", 6, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_UNSB64", 7, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAP_RULE_SB64", 8, CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_SES_DIR", "ses/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_USER_DIR", "user/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_UID_DIR", "uid/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_PEM_DIR", "pem/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_COT_DIR", "cot/", CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAX_USER", (256), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAX_MD", (64*1024), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAX_SOAP", (64*1024), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAX_EID", (1024), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MAX_DIR", (4*1024), CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_EXIT", 0x01, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_REDIR", 0x02, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_SOAPC", 0x04, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_SOAPH", 0x08, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_METAC", 0x10, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_METAH", 0x20, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_LOGINC", 0x40, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_LOGINH", 0x80, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_MGMTC", 0x100, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_MGMTH", 0x200, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_FORMF", 0x400, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_FORMT", 0x800, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_ALL", 0xfff, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_DEBUG", 0x1000, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_FMTQ", 0x2000, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_AUTO_FMTJ", 0x4000, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SSO_SIGN_A7N", 0x01, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SSO_SIGN_RESP", 0x02, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SSO_SIGN_A7N_SIMPLE", 0x04, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_OK", 0, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_BAD_DALGO", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_DIGEST_LEN", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_BAD_DIGEST", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_BAD_SALGO", 4, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_BAD_CERT", 5, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_VFY_FAIL", 6, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_NO_SIG", 7, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_TIMEOUT", 8, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXSIG_AUDIENCE", 9, CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXLOG_RELY_DIR", "rely/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXLOG_ISSUE_DIR", "issue/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXLOG_A7N_KIND", "/a7n/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXLOG_MSG_KIND", "/msg/", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXLOG_WIR_KIND", "/wir/", CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_DAP_SCOPE_BASE", 0, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_DAP_SCOPE_SINGLE", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_DAP_SCOPE_SUBTREE", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CDC_CHOICE_ALWAYS_FIRST", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CDC_CHOICE_ALWAYS_LAST", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CDC_CHOICE_ALWAYS_ONLY", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CDC_CHOICE_UI_PREF", 4, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CDC_CHOICE_UI_NOPREF", 5, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_CDC_CHOICE_UI_ONLY_CDC", 6, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_ART", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_POST", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_PAOS", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_SOAP", 4, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_POST_SIMPLE_SIGN", 5, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_REDIR", 6, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SAML2_URI", 7, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SLO_SVC", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_MNI_SVC", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_ACS_SVC", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SEC_MECH_NULL", 0, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SEC_MECH_BEARER", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SEC_MECH_SAML", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SEC_MECH_X509", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SEC_MECH_PEERS", 4, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_FAIL", 0, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_OK", 1, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_REDIR_OK", 2, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_SSO_OK", 3, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT( "ZXID_IDP_REQ", 4, CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_TRUE", "1", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ZXID_FALSE", "0", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("CRLF", "\r\n", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("CRLF2", "\r\n\r\n", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_PROTO", "urn:oasis:names:tc:SAML:2.0:protocol", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_VERSION", "2.0", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_SUCCESS", "urn:oasis:names:tc:SAML:2.0:status:Success", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_REQUESTER", "urn:oasis:names:tc:SAML:2.0:status:Requester", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_RESPONDER", "urn:oasis:names:tc:SAML:2.0:status:Responder", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_VERSION", "urn:oasis:names:tc:SAML:2.0:status:VersionMismatch", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_AUTHNFAIL", "urn:oasis:names:tc:SAML:2.0:status:AuthnFailed", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_INVATTRNV", "urn:oasis:names:tc:SAML:2.0:status:InvalidAttrnameOrValue", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_INVNIDPOL", "urn:oasis:names:tc:SAML:2.0:status:InvalidNameIDPolicy", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_NOAUTNCTX", "urn:oasis:names:tc:SAML:2.0:status:NoAuthnContext", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_NOAVALIDP", "urn:oasis:names:tc:SAML:2.0:status:NoAvailableIDP", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_NOPASSIVE", "urn:oasis:names:tc:SAML:2.0:status:NoPassive", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_NOSUPPIDP", "urn:oasis:names:tc:SAML:2.0:status:NoSupportedIDP", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_PARLOGOUT", "urn:oasis:names:tc:SAML:2.0:status:PartialLogout", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_PROXYCEXC", "urn:oasis:names:tc:SAML:2.0:status:ProxyCountExceeded", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_REQDENIED", "urn:oasis:names:tc:SAML:2.0:status:RequestDenied", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_REQUNSUPP", "urn:oasis:names:tc:SAML:2.0:status:RequestUnsupported", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_REQVERDEP", "urn:oasis:names:tc:SAML:2.0:status:RequestVersionDeprecated", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_REQVERHIG", "urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooHigh", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_REQVERLOW", "urn:oasis:names:tc:SAML:2.0:status:RequestVersionTooLow", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_RESONRECG", "urn:oasis:names:tc:SAML:2.0:status:ResourceNotRecognized", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_TOOMNYRES", "urn:oasis:names:tc:SAML:2.0:status:TooManyResponses", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_UNKATTPRO", "urn:oasis:names:tc:SAML:2.0:status:UnknownAttributeProfile", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_UNKPRNCPL", "urn:oasis:names:tc:SAML:2.0:status:UnknownPrincipal", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SC_UNSUPPBIN", "urn:oasis:names:tc:SAML:2.0:status:UnsupportedBinding", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML_AUTHCTX_PASSWORDPROTECTED", "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML_AUTHCTX_PASSWORD", "urn:oasis:names:tc:SAML:2.0:ac:classes:Password", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML_AUTHCTX_SSL_TLS_CERT", "urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML_AUTHCTX_PREVSESS", "urn:oasis:names:tc:SAML:2.0:ac:classes:PreviousSession", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML_AUTHCTX_UNSPCFD", "urn:oasis:names:tc:SAML:2.0:ac:classes:unspecified", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML_AUTHCTX_INPROT", "urn:oasis:names:tc:SAML:2.0:ac:classes:InternetProtocol", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_UNSPECIFIED_NID_FMT", "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_EMAILADDR_NID_FMT", "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_X509_NID_FMT", "urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_WINDOMAINQN_NID_FMT", "urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_KERBEROS_NID_FMT", "urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_ENTITY_NID_FMT", "urn:oasis:names:tc:SAML:2.0:nameid-format:entity", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_PERSISTENT_NID_FMT", "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_TRANSIENT_NID_FMT", "urn:oasis:names:tc:SAML:2.0:nameid-format:transient", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SSO_BRWS", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:browser", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SSO_ECP", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:ecp", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SLO", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:logout", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_NIREG", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:nameid-mgmt", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_NIMAP", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:nameidmapping", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_ARTIFACT", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:artifact", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_QUERY", "urn:oasis:names:tc:SAML:2.0:profiles:SSO:query", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_PAOS", "urn:oasis:names:tc:SAML:2.0:bindings:PAOS", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SOAP", "urn:oasis:names:tc:SAML:2.0:bindings:SOAP", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_REDIR", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_ART", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_POST", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_POST_SIMPLE_SIGN", "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST-SimpleSign", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_URI", "urn:oasis:names:tc:SAML:2.0:bindings:URI", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_AP_BASIC", "urn:oasis:names:tc:SAML:2.0:profiles:attribute:basic", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_AP_X500", "urn:oasis:names:tc:SAML:2.0:profiles:attribute:X500", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_AP_UUID", "urn:oasis:names:tc:SAML:2.0:profiles:attribute:UUID", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_AP_DCE", "urn:oasis:names:tc:SAML:2.0:profiles:attribute:DCE", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_AP_XACML", "urn:oasis:names:tc:SAML:2.0:profiles:attribute:XACML", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ATTRNAME_UNSPECIFIED", "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ATTRNAME_BASIC", "urn:oasis:names:tc:SAML:2.0:attrname-format:basic", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SOAP_ACTOR_NEXT", "http://schemas.xmlsoap.org/soap/actor/next", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_BEARER", "urn:oasis:names:tc:SAML:2.0:cm:bearer", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("SAML2_SOAP_ACTION", "http://www.oasis-open.org/committees/security", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ACTION_RW", "urn:oasis:names:tc:SAML:1.0:action:rwedc", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ACTION_RWN", "urn:oasis:names:tc:SAML:1.0:action:rwedc-negation", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ACTION_GHPP", "urn:oasis:names:tc:SAML:1.0:action:ghpp", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("ACTION_UNIX", "urn:oasis:names:tc:SAML:1.0:action:unix", CONST_CS | CONST_PERSISTENT);
REGISTER_STRING_CONSTANT("PAOS_CONTENT", "application/vnd.paos+xml", CONST_CS | CONST_PERSISTENT);
/* end cinit subsection */

/* vinit subsection */
{
 zval *z_var;
 MAKE_STD_ZVAL(z_var);
 z_var->type = IS_STRING;
 if(std_basis_64) {
	// varinit char [ANY]
	ZVAL_STRINGL(z_var,(char*)std_basis_64, 64, 1);
 }
 zend_hash_add(&EG(symbol_table), "std_basis_64", strlen("std_basis_64")+1, (void*)&z_var,
 sizeof(zval *), NULL);
}
{
 zval *z_var;
 MAKE_STD_ZVAL(z_var);
 z_var->type = IS_STRING;
 if(safe_basis_64) {
	// varinit char [ANY]
	ZVAL_STRINGL(z_var,(char*)safe_basis_64, 64, 1);
 }
 zend_hash_add(&EG(symbol_table), "safe_basis_64", strlen("safe_basis_64")+1, (void*)&z_var,
 sizeof(zval *), NULL);
}
{
  zval *z_var;
  MAKE_STD_ZVAL(z_var);
  SWIG_SetPointerZval(z_var, (void*)zx_std_index_64, SWIGTYPE_p_unsigned_char, 0);
  zend_hash_add(&EG(symbol_table), "zx_std_index_64", strlen("zx_std_index_64")+1, (void *)&z_var,
  sizeof(zval *), NULL);
}
/* end vinit subsection */

    return SUCCESS;
}
PHP_MSHUTDOWN_FUNCTION(zxid)
{
/* shutdown section */

    return SUCCESS;
}
PHP_RSHUTDOWN_FUNCTION(zxid)
{
/* rshutdown section */

    return SUCCESS;
}
PHP_MINFO_FUNCTION(zxid)
{
}
/* end init section */
