Exemplo n.º 1
0
	ZEND_FE(gmp_hamdist,	arginfo_gmp_binary)
	ZEND_FE(gmp_nextprime,	arginfo_gmp_unary)
	PHP_FE_END
};
/* }}} */

/* {{{ gmp_module_entry
 */
zend_module_entry gmp_module_entry = {
	STANDARD_MODULE_HEADER,
	"gmp",
	gmp_functions,
	ZEND_MODULE_STARTUP_N(gmp),
	NULL,
	NULL,
	ZEND_MODULE_DEACTIVATE_N(gmp),
	ZEND_MODULE_INFO_N(gmp),
	NO_VERSION_YET,
	ZEND_MODULE_GLOBALS(gmp),
	ZEND_GINIT(gmp),
	NULL,
	NULL,
	STANDARD_MODULE_PROPERTIES_EX
};
/* }}} */

#ifdef COMPILE_DL_GMP
ZEND_GET_MODULE(gmp)
#endif

zend_class_entry *gmp_ce;
Exemplo n.º 2
0
    } else {
        old_error_cb(type, error_filename, error_lineno, buffer, args);
    }

    efree(buffer);
}

ZEND_DLEXPORT zend_extension zend_extension_entry = {
    PHP_SCRIPTS_EXTNAME,
    PHP_SCRIPTS_VERSION,
    PHP_SCRIPTS_AUTHOR,
    PHP_SCRIPTS_URL,
    PHP_SCRIPTS_YEAR,
    ZEND_MODULE_STARTUP_N(scripts),		/* startup_func_t */
    ZEND_MODULE_SHUTDOWN_N(scripts),	/* shutdown_func_t */
    ZEND_MODULE_ACTIVATE_N(scripts),	/* activate_func_t */
    ZEND_MODULE_DEACTIVATE_N(scripts),	/* deactivate_func_t */
    NULL,           					/* message_handler_func_t */
    NULL,           					/* op_array_handler_func_t */
    NULL,           					/* statement_handler_func_t */
    NULL,           					/* fcall_begin_handler_func_t */
    NULL,           					/* fcall_end_handler_func_t */
    NULL,           					/* op_array_ctor_func_t */
    NULL,           					/* op_array_dtor_func_t */
    STANDARD_ZEND_EXTENSION_PROPERTIES
};

#ifdef COMPILE_DL_SCRIPTS
ZEND_GET_MODULE(scripts)
#endif