版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、天一博勝企業(yè)管理軟件V1.0 天一博勝企業(yè)管理軟件V1.0 源代碼 /* used to close fds in the range 3.255 here, but its problematic */int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals)TSRMLS_FETCH();php_module_shutdown(TSRMLS_C);return SUCCESS;void php_module_shutdown(TSRMLS_D)int module_number=0; /* for UNREGISTER_
2、INI_ENTRIES() */ module_shutdown = 1;if (!module_initialized) return;#ifdef ZTSts_free_worker_threads();#endif#if defined(PHP_WIN32) | (defined(NETWARE) & defined(USE_WINSOCK) /*close winsock */WSACleanup();#endifphp_shutdown_ticks(TSRMLS_C);sapi_flush(TSRMLS_C);zend_shutdown(TSRMLS_C);php_shutdown_
3、stream_wrappers(module_number TSRMLS_CC);php_shutdown_info_logos();UNREGISTER_INI_ENTRIES();php_shutdown_config();#ifndef ZTSzend_ini_shutdown(TSRMLS_C);shutdown_memory_manager(CG(unclean_shutdown), 1 TSRMLS_CC);core_globals_dtor(&core_globals TSRMLS_CC);#elsezend_ini_global_shutdown(TSRMLS_C);ts_fr
4、ee_id(core_globals_id);#endifphp_shutdown_temporary_directory();module_initialized = 0;#if defined(PHP_WIN32) & defined(_MSC_VER) & (_MSC_VER = 1400)if (old_invalid_parameter_handler = NULL) _set_invalid_parameter_handler(old_invalid_parameter_handler);#endifPHPAPI int php_execute_script(zend_file_h
5、andle *primary_file TSRMLS_DC)zend_file_handle *prepend_file_p, *append_file_p;zend_file_handle prepend_file = 0, append_file = 0;#if HA VE_BROKEN_GETCWDint old_cwd_fd = -1;#elsechar *old_cwd;#endifint retval = 0;EG(exit_status) = 0;if (php_handle_special_queries(TSRMLS_C) zend_file_handle_dtor(prim
6、ary_file);return 0;#ifndef HA VE_BROKEN_GETCWD# define OLD_CWD_SIZE 4096old_cwd = do_alloca(OLD_CWD_SIZE);old_cwd0 = 0;#endifzend_try char realfileMAXPA THLEN;#ifdef PHP_WIN32UpdateIniFromRegistry(primary_file-filename TSRMLS_CC);#endif&PG(during_request_startup) = 0;&if (primary_file-type = ZEND_HA
7、NDLE_FILENAME | primary_file-type = ZEND_HANDLE_STREAM) primary_file-filename) #if HA VE_BROKEN_GETCWD/* this looks nasty to me */old_cwd_fd = open(., 0);#elseVCWD_GETCWD(old_cwd, OLD_CWD_SIZE-1);#endifVCWD_CHDIR_FILE(primary_file-filename);if (primary_file-filename &primary_file-opened_path = NULL
8、&primary_file-type != ZEND_HANDLE_FILENAME )int realfile_len;int dummy = 1;if (expand_filepath(primary_file-filename, realfile TSRMLS_CC) realfile_len = strlen(realfile);zend_hash_add(&EG(included_files), realfile, realfile_len+1, (void *)&dummy, sizeof(int), NULL);primary_file-opened_path = estrndu
9、p(realfile, realfile_len);if (PG(auto_prepend_file) & PG(auto_prepend_file)0) prepend_file.filename = PG(auto_prepend_file);prepend_file.opened_path = NULL;prepend_file.free_filename = 0;prepend_file.type = ZEND_HANDLE_FILENAME;prepend_file_p = &prepend_file; else prepend_file_p = NULL;if (PG(auto_a
10、ppend_file) & PG(auto_append_file)0) append_file.filename = PG(auto_append_file);append_file.opened_path = NULL;append_file.free_filename = 0;append_file.type = ZEND_HANDLE_FILENAME; append_file_p = &append_file; else append_file_p = NULL;if (PG(max_input_time) != -1) #ifdef PHP_WIN32zend_unset_time
11、out(TSRMLS_C);#endifzend_set_timeout(INI_INT(max_execution_time); retval = (zend_execute_scripts(ZEND_REQUIRE TSRMLS_CC, NULL, 3, prepend_file_p, primary_file, append_file_p) =SUCCESS); zend_end_try();#if HA VE_BROKEN_GETCWDif (old_cwd_fd != -1) fchdir(old_cwd_fd); close(old_cwd_fd);#elseif (old_cwd
12、0 != 0) VCWD_CHDIR(old_cwd);free_alloca(old_cwd);#endifreturn retval;PHPAPI int php_execute_simple_script(zend_file_handle *primary_file, zval *ret TSRMLS_DC)char *old_cwd;EG(exit_status) = 0;#define OLD_CWD_SIZE 4096old_cwd = do_alloca(OLD_CWD_SIZE);old_cwd0 = 0;zend_try #ifdef PHP_WIN32UpdateIniFr
13、omRegistry(primary_file-filename TSRMLS_CC);#endifPG(during_request_startup) = 0;if (primary_file-type = ZEND_HANDLE_FILENAME & primary_file-filename) VCWD_GETCWD(old_cwd, OLD_CWD_SIZE-1);VCWD_CHDIR_FILE(primary_file-filename); zend_execute_scripts(ZEND_REQUIRE TSRMLS_CC, ret, 1, primary_file); zend
14、_end_try();if (old_cwd0 != 0) VCWD_CHDIR(old_cwd);free_alloca(old_cwd);return EG(exit_status);PHPAPI void php_handle_aborted_connection(void)TSRMLS_FETCH();PG(connection_status) = PHP_CONNECTION_ABORTED;php_output_set_status(0 TSRMLS_CC);if (!PG(ignore_user_abort) zend_bailout();PHPAPI int php_handl
15、e_auth_data(const char *auth TSRMLS_DC)int ret = -1;if (auth & auth0 != 0 & strncmp(auth, Basic , 6) = 0) char *pass;char *user;user = php_base64_decode(auth + 6, strlen(auth) - 6, NULL);if (user) pass = strchr(user, :);if (pass) *pass+ = 0;SG(request_info).auth_user = user;SG(request_info).auth_pas
16、sword = estrdup(pass);ret = 0; else efree(user);if (ret = -1) SG(request_info).auth_user = SG(request_info).auth_password = NULL; else SG(request_info).auth_digest = NULL;if (ret = -1 & auth & auth0 != 0 & strncmp(auth, Digest , 7) = 0) SG(request_info).auth_digest = estrdup(auth + 7);ret = 0;if (ret = -1) SG(request_info).auth_digest = NULL;return ret;PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC)zend_op_ar
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 石英晶體濾波器制造工崗前進度管理考核試卷含答案
- 鐵合金原料工安全技能水平考核試卷含答案
- 藥品購銷員崗前崗位水平考核試卷含答案
- 糖汁過濾工崗前安全意識強化考核試卷含答案
- 工業(yè)車輛維修工安全生產(chǎn)基礎(chǔ)知識水平考核試卷含答案
- 鍋爐操作工沖突解決考核試卷含答案
- 自輪運轉(zhuǎn)設(shè)備檢修工復(fù)測強化考核試卷含答案
- 煉油樹脂工安全理論考核試卷含答案
- 偏鎢酸銨制備工風(fēng)險評估競賽考核試卷含答案
- 普通銑工崗前時間管理考核試卷含答案
- 江蘇省無錫市江陰市三校聯(lián)考2025-2026學(xué)年高三上學(xué)期12月月考物理試題
- 2026年醫(yī)院職工勞動合同
- 國家開放大學(xué)2025年秋《毛概》終考大作業(yè)試題3參考答案
- 采購衛(wèi)浴合同范本模板
- 物流經(jīng)理年終總結(jié)
- 2025年交管12123學(xué)法減分考試試題與答案
- 2025國家開放大學(xué)《公共部門人力資源管理》期末機考題庫
- GB/T 22562-2008電梯T型導(dǎo)軌
- DB11-T 944-2022地面工程防滑施工及驗收規(guī)程
- 1模鍛方法與工藝
- 廠房租賃雙方安全生產(chǎn)責(zé)任清單
評論
0/150
提交評論