|
|
|
@ -416,6 +416,24 @@ static PHP_INI_DISP(display_errors_mode) |
|
|
|
} |
|
|
|
/* }}} */ |
|
|
|
|
|
|
|
/* {{{ PHP_INI_MH |
|
|
|
*/ |
|
|
|
static PHP_INI_MH(OnUpdateErrorLog) |
|
|
|
{ |
|
|
|
/* Only do the safemode/open_basedir check at runtime */ |
|
|
|
if ((stage == PHP_INI_STAGE_RUNTIME || stage == PHP_INI_STAGE_HTACCESS) && |
|
|
|
strcmp(new_value, "syslog")) { |
|
|
|
|
|
|
|
if (PG(open_basedir) && php_check_open_basedir(new_value TSRMLS_CC)) { |
|
|
|
return FAILURE; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
OnUpdateString(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC); |
|
|
|
return SUCCESS; |
|
|
|
} |
|
|
|
/* }}} */ |
|
|
|
|
|
|
|
/* |
|
|
|
* Need to be read from the environment (?): |
|
|
|
* PHP_AUTO_PREPEND_FILE |
|
|
|
@ -481,7 +499,7 @@ PHP_INI_BEGIN() |
|
|
|
STD_PHP_INI_ENTRY("default_charset", SAPI_DEFAULT_CHARSET, PHP_INI_ALL, OnUpdateDefaultCharset, default_charset, sapi_globals_struct,sapi_globals) |
|
|
|
STD_PHP_INI_ENTRY("default_mimetype", SAPI_DEFAULT_MIMETYPE, PHP_INI_ALL, OnUpdateDefaultMimetype, default_mimetype, sapi_globals_struct,sapi_globals) |
|
|
|
ZEND_INI_ENTRY("unicode.output_encoding", NULL, ZEND_INI_ALL, OnUpdateOutputEncoding) |
|
|
|
STD_PHP_INI_ENTRY("error_log", NULL, PHP_INI_ALL, OnUpdateString, error_log, php_core_globals, core_globals) |
|
|
|
STD_PHP_INI_ENTRY("error_log", NULL, PHP_INI_ALL, OnUpdateErrorLog, error_log, php_core_globals, core_globals) |
|
|
|
STD_PHP_INI_ENTRY("extension_dir", PHP_EXTENSION_DIR, PHP_INI_SYSTEM, OnUpdateStringUnempty, extension_dir, php_core_globals, core_globals) |
|
|
|
STD_PHP_INI_ENTRY("include_path", PHP_INCLUDE_PATH, PHP_INI_ALL, OnUpdateStringUnempty, include_path, php_core_globals, core_globals) |
|
|
|
PHP_INI_ENTRY("max_execution_time", "30", PHP_INI_ALL, OnUpdateTimeout) |
|
|
|
|