Back to index

php5  5.3.10
php_ini.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    | Author: Zeev Suraski <zeev@zend.com>                                 |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_ini.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_INI_H
00022 #define PHP_INI_H
00023 
00024 #include "zend_ini.h"
00025 
00026 BEGIN_EXTERN_C()
00027 PHPAPI void config_zval_dtor(zval *zvalue);
00028 int php_init_config(TSRMLS_D);
00029 int php_shutdown_config(void);
00030 void php_ini_register_extensions(TSRMLS_D);
00031 PHPAPI zval *cfg_get_entry(const char *name, uint name_length);
00032 PHPAPI int cfg_get_long(const char *varname, long *result);
00033 PHPAPI int cfg_get_double(const char *varname, double *result);
00034 PHPAPI int cfg_get_string(const char *varname, char **result);
00035 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC);
00036 PHPAPI void php_ini_activate_config(HashTable *source_hash, int modify_type, int stage TSRMLS_DC);
00037 PHPAPI int php_ini_has_per_dir_config(void);
00038 PHPAPI int php_ini_has_per_host_config(void);
00039 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC);
00040 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
00041 PHPAPI HashTable* php_ini_get_configuration_hash(void);
00042 END_EXTERN_C()
00043 
00044 #define PHP_INI_USER ZEND_INI_USER
00045 #define PHP_INI_PERDIR      ZEND_INI_PERDIR
00046 #define PHP_INI_SYSTEM      ZEND_INI_SYSTEM
00047 
00048 #define PHP_INI_ALL  ZEND_INI_ALL
00049 
00050 #define php_ini_entry       zend_ini_entry
00051 
00052 #define PHP_INI_MH          ZEND_INI_MH
00053 #define PHP_INI_DISP ZEND_INI_DISP
00054 
00055 #define PHP_INI_BEGIN              ZEND_INI_BEGIN
00056 #define PHP_INI_END                ZEND_INI_END
00057 
00058 #define PHP_INI_ENTRY3_EX   ZEND_INI_ENTRY3_EX
00059 #define PHP_INI_ENTRY3             ZEND_INI_ENTRY3
00060 #define PHP_INI_ENTRY2_EX   ZEND_INI_ENTRY2_EX
00061 #define PHP_INI_ENTRY2             ZEND_INI_ENTRY2
00062 #define PHP_INI_ENTRY1_EX   ZEND_INI_ENTRY1_EX
00063 #define PHP_INI_ENTRY1             ZEND_INI_ENTRY1
00064 #define PHP_INI_ENTRY_EX    ZEND_INI_ENTRY_EX
00065 #define PHP_INI_ENTRY              ZEND_INI_ENTRY
00066 
00067 #define STD_PHP_INI_ENTRY          STD_ZEND_INI_ENTRY
00068 #define STD_PHP_INI_ENTRY_EX       STD_ZEND_INI_ENTRY_EX
00069 #define STD_PHP_INI_BOOLEAN        STD_ZEND_INI_BOOLEAN
00070 
00071 #define PHP_INI_DISPLAY_ORIG       ZEND_INI_DISPLAY_ORIG
00072 #define PHP_INI_DISPLAY_ACTIVE     ZEND_INI_DISPLAY_ACTIVE
00073 
00074 #define PHP_INI_STAGE_STARTUP             ZEND_INI_STAGE_STARTUP
00075 #define PHP_INI_STAGE_SHUTDOWN            ZEND_INI_STAGE_SHUTDOWN
00076 #define PHP_INI_STAGE_ACTIVATE            ZEND_INI_STAGE_ACTIVATE
00077 #define PHP_INI_STAGE_DEACTIVATE   ZEND_INI_STAGE_DEACTIVATE
00078 #define PHP_INI_STAGE_RUNTIME             ZEND_INI_STAGE_RUNTIME
00079 #define PHP_INI_STAGE_HTACCESS            ZEND_INI_STAGE_HTACCESS
00080 
00081 #define php_ini_boolean_displayer_cb      zend_ini_boolean_displayer_cb
00082 #define php_ini_color_displayer_cb        zend_ini_color_displayer_cb
00083 
00084 #define php_alter_ini_entry        zend_alter_ini_entry
00085 
00086 #define php_ini_long zend_ini_long
00087 #define php_ini_double      zend_ini_double
00088 #define php_ini_string      zend_ini_string
00089 
00090 #endif /* PHP_INI_H */