Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 91 lines (73 sloc) 3.758 kb
c5724cb @zsuraski License update
zsuraski authored
1 /*
2 +----------------------------------------------------------------------+
ccfc46b - Happy new year and PHP 5 for rest of the files too..
foobar authored
3 | PHP Version 5 |
c5724cb @zsuraski License update
zsuraski authored
4 +----------------------------------------------------------------------+
4e19825 @felipensp - Year++
felipensp authored
5 | Copyright (c) 1997-2012 The PHP Group |
c5724cb @zsuraski License update
zsuraski authored
6 +----------------------------------------------------------------------+
5bd9322 bump year and license version
foobar authored
7 | This source file is subject to version 3.01 of the PHP license, |
c5724cb @zsuraski License update
zsuraski authored
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored
9 | available through the world-wide-web at the following url: |
5bd9322 bump year and license version
foobar authored
10 | http://www.php.net/license/3_01.txt |
c5724cb @zsuraski License update
zsuraski authored
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
4af433d @zsuraski Use the new INI parser for parse_ini_str()
zsuraski authored
15 | Author: Zeev Suraski <zeev@zend.com> |
c5724cb @zsuraski License update
zsuraski authored
16 +----------------------------------------------------------------------+
17 */
18
8e3f23e ws fixes + missing $Id$ tags, headers added
foobar authored
19 /* $Id$ */
20
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
21 #ifndef PHP_INI_H
22 #define PHP_INI_H
aceaabc @zsuraski PHP 4.0
zsuraski authored
23
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
24 #include "zend_ini.h"
aceaabc @zsuraski PHP 4.0
zsuraski authored
25
e6ea5ca Fix use of EXTERN_C macros
Ard Biesheuvel authored
26 BEGIN_EXTERN_C()
1674976 MFH: Fixed win32 build.
Jani Taskinen authored
27 PHPAPI void config_zval_dtor(zval *zvalue);
64cfbf5 MFH: - Fixed bug #34307 (OnUpdateStringUnempty INI options can be set…
foobar authored
28 int php_init_config(TSRMLS_D);
78194a4 @zsuraski - Complete the move to the new INI parser. (Side effect: at last, p…
zsuraski authored
29 int php_shutdown_config(void);
f47c784 Improved PHP extension loading mechanism with support for module depe…
Dmitry Stogov authored
30 void php_ini_register_extensions(TSRMLS_D);
cf7384a @felipensp - MFH: Constness (Added const qualifier to several function parameters)
felipensp authored
31 PHPAPI zval *cfg_get_entry(const char *name, uint name_length);
32 PHPAPI int cfg_get_long(const char *varname, long *result);
33 PHPAPI int cfg_get_double(const char *varname, double *result);
34 PHPAPI int cfg_get_string(const char *varname, char **result);
35 PHPAPI int php_parse_user_ini_file(const char *dirname, char *ini_filename, HashTable *target_hash TSRMLS_DC);
09b6f37 MFH:
Jani Taskinen authored
36 PHPAPI void php_ini_activate_config(HashTable *source_hash, int modify_type, int stage TSRMLS_DC);
ba8e317 Optimized request startup sequence for php.ini without per dir and pe…
Dmitry Stogov authored
37 PHPAPI int php_ini_has_per_dir_config(void);
38 PHPAPI int php_ini_has_per_host_config(void);
09b6f37 MFH:
Jani Taskinen authored
39 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC);
cf7384a @felipensp - MFH: Constness (Added const qualifier to several function parameters)
felipensp authored
40 PHPAPI void php_ini_activate_per_host_config(const char *host, uint host_len TSRMLS_DC);
8976db8 - MFH Typo
Marcus Boerger authored
41 PHPAPI HashTable* php_ini_get_configuration_hash(void);
e6ea5ca Fix use of EXTERN_C macros
Ard Biesheuvel authored
42 END_EXTERN_C()
78194a4 @zsuraski - Complete the move to the new INI parser. (Side effect: at last, p…
zsuraski authored
43
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
44 #define PHP_INI_USER ZEND_INI_USER
45 #define PHP_INI_PERDIR ZEND_INI_PERDIR
46 #define PHP_INI_SYSTEM ZEND_INI_SYSTEM
aceaabc @zsuraski PHP 4.0
zsuraski authored
47
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
48 #define PHP_INI_ALL ZEND_INI_ALL
6a97e16 @zsuraski * Add arguments to shutdown function
zsuraski authored
49
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
50 #define php_ini_entry zend_ini_entry
3e58450 @zsuraski * A lot of work on php_ini stuff
zsuraski authored
51
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
52 #define PHP_INI_MH ZEND_INI_MH
53 #define PHP_INI_DISP ZEND_INI_DISP
aceaabc @zsuraski PHP 4.0
zsuraski authored
54
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
55 #define PHP_INI_BEGIN ZEND_INI_BEGIN
56 #define PHP_INI_END ZEND_INI_END
aceaabc @zsuraski PHP 4.0
zsuraski authored
57
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
58 #define PHP_INI_ENTRY3_EX ZEND_INI_ENTRY3_EX
59 #define PHP_INI_ENTRY3 ZEND_INI_ENTRY3
60 #define PHP_INI_ENTRY2_EX ZEND_INI_ENTRY2_EX
61 #define PHP_INI_ENTRY2 ZEND_INI_ENTRY2
62 #define PHP_INI_ENTRY1_EX ZEND_INI_ENTRY1_EX
63 #define PHP_INI_ENTRY1 ZEND_INI_ENTRY1
64 #define PHP_INI_ENTRY_EX ZEND_INI_ENTRY_EX
65 #define PHP_INI_ENTRY ZEND_INI_ENTRY
bc415d5 @zsuraski * Finalizing the PHP version of SAPI. Support POST and cookies among…
zsuraski authored
66
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
67 #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
68 #define STD_PHP_INI_ENTRY_EX STD_ZEND_INI_ENTRY_EX
69 #define STD_PHP_INI_BOOLEAN STD_ZEND_INI_BOOLEAN
6a97e16 @zsuraski * Add arguments to shutdown function
zsuraski authored
70
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
71 #define PHP_INI_DISPLAY_ORIG ZEND_INI_DISPLAY_ORIG
72 #define PHP_INI_DISPLAY_ACTIVE ZEND_INI_DISPLAY_ACTIVE
6a97e16 @zsuraski * Add arguments to shutdown function
zsuraski authored
73
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
74 #define PHP_INI_STAGE_STARTUP ZEND_INI_STAGE_STARTUP
75 #define PHP_INI_STAGE_SHUTDOWN ZEND_INI_STAGE_SHUTDOWN
76 #define PHP_INI_STAGE_ACTIVATE ZEND_INI_STAGE_ACTIVATE
77 #define PHP_INI_STAGE_DEACTIVATE ZEND_INI_STAGE_DEACTIVATE
78 #define PHP_INI_STAGE_RUNTIME ZEND_INI_STAGE_RUNTIME
0ad8523 @smalyshev add stage for .htaccess
smalyshev authored
79 #define PHP_INI_STAGE_HTACCESS ZEND_INI_STAGE_HTACCESS
6a97e16 @zsuraski * Add arguments to shutdown function
zsuraski authored
80
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
81 #define php_ini_boolean_displayer_cb zend_ini_boolean_displayer_cb
82 #define php_ini_color_displayer_cb zend_ini_color_displayer_cb
d1f1d40 @zsuraski - Make the INI entries sorted in phpinfo()
zsuraski authored
83
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
84 #define php_alter_ini_entry zend_alter_ini_entry
bc415d5 @zsuraski * Finalizing the PHP version of SAPI. Support POST and cookies among…
zsuraski authored
85
1fd0913 @zsuraski Initial steps to move the INI mechanism to the Zend engine
zsuraski authored
86 #define php_ini_long zend_ini_long
87 #define php_ini_double zend_ini_double
88 #define php_ini_string zend_ini_string
1261271 @zsuraski Allow the INI callbacks to know at what stage PHP is
zsuraski authored
89
16017f6 Change header protection macros to conform to standard.
Sascha Schumann authored
90 #endif /* PHP_INI_H */
Something went wrong with that request. Please try again.