diff options
author | Jani Taskinen <jani@php.net> | 2007-09-28 02:04:28 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2007-09-28 02:04:28 +0000 |
commit | f964370a35476b9470fb2c6db635f61a0d912953 (patch) | |
tree | 9cb35494e48b27867ce501eda2ccb354efaeb753 /Zend/zend_ini_scanner.h | |
parent | 9ecd77367e4387249cd5d124af83d98e5cfaf93a (diff) | |
download | php-git-f964370a35476b9470fb2c6db635f61a0d912953.tar.gz |
- Added ".htaccess" style user-defined php.ini files support for
CGI/FastCGI.
- Added support for special [PATH=/opt/httpd/www.example.com/] sections
in php.ini. All directives set in these sections will not be able to be
overridden in user-defined ini-files or during runtime in the specified
path.
- Improved php.ini handling:
. Added better error reporting for syntax errors in php.ini files
. Allowed "ini-variables" to be used almost everywhere ini php.ini files
. Allowed using alphanumeric/variable indexes in "array" ini options
. Fixed get_cfg_var() to be able to return "array" ini options
- Fixed bug #27372 (parse error loading browscap.ini at apache startup)
- Fixed bug #42069 (parse_ini_file() allows using some non-alpha numeric
characters)
@DOC Pierre promised to handle the manual part of this :D
Diffstat (limited to 'Zend/zend_ini_scanner.h')
-rw-r--r-- | Zend/zend_ini_scanner.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Zend/zend_ini_scanner.h b/Zend/zend_ini_scanner.h index 76ca771058..3ba6e120f5 100644 --- a/Zend/zend_ini_scanner.h +++ b/Zend/zend_ini_scanner.h @@ -22,13 +22,18 @@ #ifndef _ZEND_INI_SCANNER_H #define _ZEND_INI_SCANNER_H +/* Scanner modes */ +#define ZEND_INI_SCANNER_NORMAL 0 /* Normal mode. [DEFAULT] */ +#define ZEND_INI_SCANNER_RAW 1 /* Raw mode. Option values are not parsed */ + BEGIN_EXTERN_C() int zend_ini_scanner_get_lineno(TSRMLS_D); char *zend_ini_scanner_get_filename(TSRMLS_D); -int zend_ini_open_file_for_scanning(zend_file_handle *fh TSRMLS_DC); -int zend_ini_prepare_string_for_scanning(char *str TSRMLS_DC); +int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC); +int zend_ini_prepare_string_for_scanning(char *str, int scanner_mode TSRMLS_DC); void zend_ini_close_file(zend_file_handle *fh TSRMLS_DC); int ini_lex(zval *ini_lval TSRMLS_DC); +void shutdown_ini_scanner(TSRMLS_D); END_EXTERN_C() #endif /* _ZEND_INI_SCANNER_H */ |