mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Disable realpath cache when open_basedir or safe_mode are enabled on a
per-request basis.
This commit is contained in:
parent
be4c37919b
commit
cccb406ee8
2
NEWS
2
NEWS
@ -1,6 +1,8 @@
|
||||
PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? 2006, PHP 5.2.0
|
||||
- Disable realpath cache when open_basedir or safe_mode are enabled on a
|
||||
per-request basis. (Ilia)
|
||||
- Optimized require_once/include_once (eliminated fopen() on second usage).
|
||||
(Dmitry)
|
||||
- Optimized request shutdown sequence. Restoring ini directives now
|
||||
|
@ -1097,6 +1097,11 @@ int php_request_startup(TSRMLS_D)
|
||||
zend_set_timeout(PG(max_input_time));
|
||||
}
|
||||
|
||||
/* Disable realpath cache if safe_mode or open_basedir are set */
|
||||
if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) {
|
||||
CWDG(realpath_cache_size_limit) = 0;
|
||||
}
|
||||
|
||||
if (PG(expose_php)) {
|
||||
sapi_add_header(SAPI_PHP_VERSION_HEADER, sizeof(SAPI_PHP_VERSION_HEADER)-1, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user