软件著作权范本(17)
int php_request_startup(TSRMLS_D) { } # endif /* }}} */
/* {{{ php_request_startup_for_hook */
int php_request_startup_for_hook(TSRMLS_D) { }
int retval = SUCCESS;
signal(SIGCHLD, sigchld_handler);
if (php_start_sapi(TSRMLS_C) == FAILURE) { }
php_output_activate(TSRMLS_C); sapi_activate_headers_only(TSRMLS_C); php_hash_environment(TSRMLS_C); return retval;
return FAILURE;
#if PHP_SIGCHLD #endif
int retval = SUCCESS;
signal(SIGCHLD, sigchld_handler); if (php_start_sapi() == FAILURE) { }
php_output_activate(TSRMLS_C); sapi_activate(TSRMLS_C);
php_hash_environment(TSRMLS_C); zend_try {
PG(during_request_startup) = 1; php_output_activate(TSRMLS_C); if (PG(expose_php)) { }
retval = FAILURE;
sapi_add_header(SAPI_PHP_VERSION_HEADER, sizeof(SAPI_PHP_VERSION_HEADER)-1, 1); return FAILURE;
#if PHP_SIGCHILD #endif
/* PG(during_request_startup) = 0; */ php_hash_environment(TSRMLS_C); zend_activate_modules(TSRMLS_C); PG(modules_activated)=1; retval = FAILURE;
47
} zend_catch { } zend_end_try(); SG(sapi_started) = 1; return retval;
} zend_catch { } zend_end_try(); return retval;
天一博胜企业管理软件V1.0 源代码 /* }}} */
/* {{{ php_request_shutdown_for_exec */
void php_request_shutdown_for_exec(void *dummy) { } /* }}} */
/* {{{ php_request_shutdown_for_hook */
void php_request_shutdown_for_hook(void *dummy) { } /* }}} */
/* {{{ php_request_shutdown */
void php_request_shutdown(void *dummy) {
zend_bool report_memleaks; TSRMLS_FETCH(); TSRMLS_FETCH();
if (PG(modules_activated)) zend_try {
php_call_shutdown_functions(TSRMLS_C); } zend_end_try();
if (PG(modules_activated)) { } zend_try {
int i;
for (i = 0; i < NUM_TRACK_VARS; i++) { }
if (PG(http_globals)[i]) { }
zval_ptr_dtor(&PG(http_globals)[i]);
zend_deactivate_modules(TSRMLS_C); php_free_shutdown_functions(TSRMLS_C); TSRMLS_FETCH();
/* used to close fd's in the 3..255 range here, but it's problematic */
shutdown_memory_manager(1, 1 TSRMLS_CC);
48
} zend_end_try();
zend_deactivate(TSRMLS_C); zend_try {
sapi_deactivate(TSRMLS_C); } zend_end_try(); zend_try {
php_shutdown_stream_hashes(TSRMLS_C); } zend_end_try(); zend_try {
shutdown_memory_manager(CG(unclean_shutdown), 0 TSRMLS_CC); } zend_end_try(); zend_try {
zend_unset_timeout(TSRMLS_C); } zend_end_try();
天一博胜企业管理软件V1.0 源代码
report_memleaks = PG(report_memleaks);
/* EG(opline_ptr) points into nirvana and therefore cannot be safely accessed * inside zend_executor callback functions. */
EG(opline_ptr) = NULL; EG(active_op_array) = NULL;
/* 1. Call all possible shutdown functions registered with register_shutdown_function() */ if (PG(modules_activated)) zend_try {
php_call_shutdown_functions(TSRMLS_C); } zend_end_try();
/* 2. Call all possible __destruct() functions */ zend_try {
zend_call_destructors(TSRMLS_C); } zend_end_try();
/* 3. Flush all output buffers */ zend_try {
php_end_ob_buffers((zend_bool)(SG(request_info).headers_only?0:1) TSRMLS_CC); } zend_end_try();
/* 4. Send the set HTTP headers (note: This must be done AFTER php_end_ob_buffers() !!) */ zend_try {
sapi_send_headers(TSRMLS_C); } zend_end_try();
/* 5. Call all extensions RSHUTDOWN functions */ if (PG(modules_activated)) { }
/* 6. Destroy super-globals */ zend_try {
int i;
for (i=0; i if (PG(http_globals)[i]) { } zval_ptr_dtor(&PG(http_globals)[i]); zend_deactivate_modules(TSRMLS_C); php_free_shutdown_functions(TSRMLS_C); 49 } zend_end_try(); /* 6.5 free last error information */ if (PG(last_error_message)) { } if (PG(last_error_file)) { } /* 7. Shutdown scanner/executor/compiler and restore ini entries */ zend_deactivate(TSRMLS_C); /* 8. Call all extensions post-RSHUTDOWN functions */ zend_try { zend_post_deactivate_modules(TSRMLS_C); } zend_end_try(); /* 9. SAPI related shutdown (free stuff) */ free(PG(last_error_file)); PG(last_error_file) = NULL; free(PG(last_error_message)); PG(last_error_message) = NULL; 天一博胜企业管理软件V1.0 源代码 } /* }}} */ /* {{{ php_com_initialize */ PHPAPI void php_com_initialize(TSRMLS_D) { #ifdef PHP_WIN32 } /* }}} */ /* {{{ php_body_write_wrapper */ static int php_body_write_wrapper(const char *str, uint str_length) { } /* }}} */ #ifdef ZTS /* {{{ core_globals_ctor */ static void core_globals_ctor(php_core_globals *core_globals TSRMLS_DC) { } /* }}} */ #endif memset(core_globals, 0, sizeof(*core_globals)); TSRMLS_FETCH(); return php_body_write(str, str_length TSRMLS_CC); if (!PG(com_initialized)) { } CoInitialize(NULL); PG(com_initialized) = 1; zend_try { sapi_deactivate(TSRMLS_C); } zend_end_try(); /* 10. Destroy stream hashes */ zend_try { php_shutdown_stream_hashes(TSRMLS_C); } zend_end_try(); /* 11. Free Willy (here be crashes) */ zend_try { shutdown_memory_manager(CG(unclean_shutdown) || !report_memleaks, 0 TSRMLS_CC); } zend_end_try(); /* 12. Reset max_execution_time */ zend_try { zend_unset_timeout(TSRMLS_C); } zend_end_try(); if (PG(com_initialized)) { } CoUninitialize(); PG(com_initialized) = 0; 50 #ifdef PHP_WIN32 #endif #endif
相关推荐:
- [实用模板]第八章:法国“新浪潮”与“左岸派”
- [实用模板]2021年北京上半年临床医学检验技师生物
- [实用模板]SAP GUI 7.10客户端安装配置文档
- [实用模板]2001年临床执业医师资格考试综合笔试试
- [实用模板]36机场工作实用英语词汇总结
- [实用模板](一)社会保险稽核通知书
- [实用模板]安全教育主题班会材料
- [实用模板]濉溪县春季呼吸道传染病防控应急演练方
- [实用模板]长沙房地产市场周报(1.30-2.3)
- [实用模板]六年级数学上册典中点 - 图文
- [实用模板]C程序设计(红皮书)习题官方参考答案
- [实用模板]中国证监会第一届创业板发行审核委员会
- [实用模板]桥梁工程复习题
- [实用模板]2011学而思数学及答案
- [实用模板]初中病句修改专项练习
- [实用模板]监理学习知识1 - 图文
- [实用模板]小机灵杯四年级试题
- [实用模板]国贸专业毕业论文模板
- [实用模板]教育学概论考试练习题-判断题4
- [实用模板]2015届高考英语一轮复习精品资料(译林
- 00Nkmhe_市场营销学工商管理_电子商务_
- 事业单位考试法律常识
- 诚信教育实施方案
- 吉大小天鹅食品安全检测箱方案(高中低
- 房地产销售培训资料
- 高一地理必修1复习提纲
- 新概念英语第二册lesson_1_练习题
- 证券公司内部培训资料
- 小学英语时间介词专项练习
- 新世纪英语专业综合教程(第二版)第1册U
- 【新课标】浙教版最新2018年八年级数学
- 工程建设管理纲要
- 外研版 必修一Module 4 A Social Surve
- Adobe认证考试 AE复习资料
- 基于H.264AVC与AVS标准的帧内预测技术
- 《食品检验机构资质认定管理办法》(质
- ABB变频器培训课件
- (完整版)小学说明文阅读练习题及答案
- 深思洛克(SenseLock) 深思IV,深思4,深
- 弟子规全文带拼音




