From 944e948c96e08cb3501729d038e7049c6444b53d Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 10 Aug 2006 21:49:56 +0000 Subject: disable realpath cache for safe_mode & open_basedir --- main/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/main.c b/main/main.c index a22922d387..bfc373df77 100644 --- a/main/main.c +++ b/main/main.c @@ -1091,6 +1091,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); } -- cgit v1.2.1