Back to index

php5  5.3.10
php_main.h
Go to the documentation of this file.
00001 /* 
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Authors: Andi Gutmans <andi@zend.com>                                |
00016    |          Zeev Suraski <zeev@zend.com>                                |
00017    +----------------------------------------------------------------------+
00018  */
00019 
00020 /* $Id: php_main.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef PHP_MAIN_H
00023 #define PHP_MAIN_H
00024 
00025 #include "zend_globals.h"
00026 #include "php_globals.h"
00027 #include "SAPI.h"
00028 
00029 BEGIN_EXTERN_C()
00030 PHPAPI int php_request_startup(TSRMLS_D);
00031 PHPAPI void php_request_shutdown(void *dummy);
00032 PHPAPI void php_request_shutdown_for_exec(void *dummy);
00033 PHPAPI int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_modules, uint num_additional_modules);
00034 PHPAPI void php_module_shutdown(TSRMLS_D);
00035 PHPAPI void php_module_shutdown_for_exec(void);
00036 PHPAPI int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals);
00037 PHPAPI int php_request_startup_for_hook(TSRMLS_D);
00038 
00039 PHPAPI int php_register_extensions(zend_module_entry **ptr, int count TSRMLS_DC);
00040 
00041 PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC);
00042 PHPAPI int php_execute_simple_script(zend_file_handle *primary_file, zval **ret TSRMLS_DC);
00043 PHPAPI int php_handle_special_queries(TSRMLS_D);
00044 PHPAPI int php_lint_script(zend_file_handle *file TSRMLS_DC);
00045 
00046 PHPAPI void php_handle_aborted_connection(void);
00047 PHPAPI int php_handle_auth_data(const char *auth TSRMLS_DC);
00048 
00049 PHPAPI void php_html_puts(const char *str, uint siz TSRMLS_DC);
00050 PHPAPI int php_stream_open_for_zend_ex(const char *filename, zend_file_handle *handle, int mode TSRMLS_DC);
00051 
00052 extern void php_call_shutdown_functions(TSRMLS_D);
00053 extern void php_free_shutdown_functions(TSRMLS_D);
00054 
00055 /* environment module */
00056 extern int php_init_environ(void);
00057 extern int php_shutdown_environ(void);
00058 END_EXTERN_C()
00059 
00060 #endif