Fetch the repository succeeded.
This action will force synchronization from Josin/CSpeed, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
/*
+----------------------------------------------------------------------+
| CSpeed framework |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2017 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.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. |
+----------------------------------------------------------------------+
| Author:Josin<774542602@qq.com|www.supjos.cn> |
+----------------------------------------------------------------------+
*/
/* $Id$ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_cspeed.h"
#include "kernel/tool/helper.h"
ZEND_DECLARE_MODULE_GLOBALS(cspeed)
/* True global resources - no need for thread safety here */
static int le_cspeed;
/* {{{ proto string getCSpeedVersion()
Return the CSpeed version */
PHP_FUNCTION(getCSpeedVersion)
{
RETURN_STRING(PHP_CSPEED_VERSION);
}
/* }}} */
/* {{{ PHP_MINIT_FUNCTION
*/
PHP_MINIT_FUNCTION(cspeed)
{
#if defined(COMPILE_DL_CSPEED) && defined(ZTS)
/* Allocate the memory for the system to use, only for ZTS */
ZEND_INIT_MODULE_GLOBALS(cspeed, NULL, NULL);
#endif
/* Initialise the all core class for the CSpeed engine */
/* Event support */
component_init();
/* Di|App|View */
di_init();
app_init();
view_init();
/* NOTE THAT: The model_interface_init() must before the mysql_init() method */
model_interface_init();
adapter_init();
/* Other init function */
request_init();
response_init();
controller_init();
/* ActiveRecord model */
model_init();
/* Config class */
config_init();
/* Router class */
router_init();
/* Bootstrap interface */
bootstrap_init();
/* RPC class server */
server_init();
client_init();
/* CLI */
task_init();
/* After initialise, return SUCCESS means OK */
return SUCCESS;
}
/* }}} */
/* {{{ PHP_MSHUTDOWN_FUNCTION
*/
PHP_MSHUTDOWN_FUNCTION(cspeed)
{
return SUCCESS;
}
/* }}} */
/* Remove if there's nothing to do at request start */
/* {{{ PHP_RINIT_FUNCTION
*/
PHP_RINIT_FUNCTION(cspeed)
{
#if defined(COMPILE_DL_CSPEED) && defined(ZTS)
ZEND_TSRMLS_CACHE_UPDATE();
#endif
CSPEED_G(core_application) = zend_string_init(CSPEED_STRL(CORE_APPLICATION), 0);
CSPEED_G(core_bootstrap) = zend_string_init(CSPEED_STRL(CORE_BOOTSTRAP), 0);
CSPEED_G(core_router_default_module) = zend_string_init(CSPEED_STRL(CORE_ROUTER_DEFAULT_MODULE), 0);
CSPEED_G(core_router_default_controller) = zend_string_init(CSPEED_STRL(CORE_ROUTER_DEFAULT_CONTROLLER), 0);
CSPEED_G(core_router_default_action) = zend_string_init(CSPEED_STRL(CORE_ROUTER_DEFAULT_ACTION), 0);
CSPEED_G(core_view_ext) = zend_string_init(CSPEED_STRL(CORE_VIEW_EXT), 0);
CSPEED_G(core_view_auto_render) = zend_string_init(CSPEED_STRL(CORE_VIEW_AUTO_RENDER), 0);
return SUCCESS;
}
/* }}} */
/* Remove if there's nothing to do at request end */
/* {{{ PHP_RSHUTDOWN_FUNCTION
*/
PHP_RSHUTDOWN_FUNCTION(cspeed)
{
zend_string_release(CSPEED_G(core_application));
zend_string_release(CSPEED_G(core_bootstrap));
zend_string_release(CSPEED_G(core_router_default_module));
zend_string_release(CSPEED_G(core_router_default_controller));
zend_string_release(CSPEED_G(core_router_default_action));
zend_string_release(CSPEED_G(core_view_ext));
zend_string_release(CSPEED_G(core_view_auto_render));
/* Return SUCCESS */
return SUCCESS;
}
/* }}} */
/* {{{ PHP_MINFO_FUNCTION
*/
PHP_MINFO_FUNCTION(cspeed)
{
php_info_print_table_start();
php_info_print_table_header(2, "CSpeed support", "enabled");
php_info_print_table_header(2, "Author", "Josin <774542602@qq.com|www.supjos.cn>");
php_info_print_table_header(2, "Version", PHP_CSPEED_VERSION);
php_info_print_table_end();
}
/* }}} */
/* {{{ cspeed_functions[]
*
* Every user visible function must have an entry in cspeed_functions[].
*/
const zend_function_entry cspeed_functions[] = {
PHP_FE(getCSpeedVersion, NULL) /* For testing, remove later. */
PHP_FE_END /* Must be the last line in cspeed_functions[] */
};
/* }}} */
/* {{{ cspeed_module_entry
*/
zend_module_entry cspeed_module_entry = {
STANDARD_MODULE_HEADER,
"cspeed",
cspeed_functions,
PHP_MINIT(cspeed),
PHP_MSHUTDOWN(cspeed),
PHP_RINIT(cspeed), /* Replace with NULL if there's nothing to do at request start */
PHP_RSHUTDOWN(cspeed), /* Replace with NULL if there's nothing to do at request end */
PHP_MINFO(cspeed),
PHP_CSPEED_VERSION,
STANDARD_MODULE_PROPERTIES
};
/* }}} */
#ifdef COMPILE_DL_CSPEED
#ifdef ZTS
ZEND_TSRMLS_CACHE_DEFINE()
#endif
ZEND_GET_MODULE(cspeed)
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。