軟件著作權(quán)范本_第1頁
軟件著作權(quán)范本_第2頁
軟件著作權(quán)范本_第3頁
軟件著作權(quán)范本_第4頁
軟件著作權(quán)范本_第5頁
已閱讀5頁,還剩47頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rè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)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論