RState* r_state_new (RAllocFunc alloc_fn, rpointer aux) { RState* r; RState zero = { { 0 } }; r = alloc_fn (NULL, NULL, sizeof (RState)); if (!r) goto exit; *r = zero; /* Initialize memory allocator */ r->alloc_fn = alloc_fn; r->alloc_aux = aux; /* Initialize error handling facilities */ r->last_error = R_UNDEFINED; gc_init (r); init_builtin_types (r); init_global_objects (r); vm_init (r); gc_enable (r); exit: return r; }
static ZEND_INI_MH(OnUpdateGCEnabled) /* {{{ */ { zend_bool val; val = zend_ini_parse_bool(new_value); gc_enable(val); return SUCCESS; }
static void frontend_term() { gc_enable(); rt_term(); }