iliaa Tue May 16 00:40:36 2006 UTC
Modified files:
/php-src/main main.c
Log:
MFB: Disable realpath cache when open_basedir or safe_mode are enabled on a
per-request basis.
http://cvs.php.net/viewcvs.cgi/php-src/main/main.c?r1=1.688&r2=1.689&diff_format=u
Index: php-src/main/main.c
diff -u php-src/main/main.c:1.688 php-src/main/main.c:1.689
--- php-src/main/main.c:1.688 Thu May 11 22:08:55 2006
+++ php-src/main/main.c Tue May 16 00:40:36 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.688 2006/05/11 22:08:55 dmitry Exp $ */
+/* $Id: main.c,v 1.689 2006/05/16 00:40:36 iliaa Exp $ */
/* {{{ includes
*/
@@ -1197,6 +1197,11 @@
zend_set_timeout(PG(max_input_time));
}
+ /* Disable realpath cache if safe_mode or open_basedir are set
*/
+ if (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);
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php