From 6f1b3ea73ada600de1f2c781a4a33b18b0cf5ffd Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Tue, 10 Jul 2007 17:58:19 +0000 Subject: [PATCH] suppress warnings to avoid potential loop --- main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/main.c b/main/main.c index ee70a04f88..6322230ede 100644 --- a/main/main.c +++ b/main/main.c @@ -356,11 +356,11 @@ PHPAPI void php_log_err(char *log_message TSRMLS_DC) return; } #endif - if (PG(safe_mode) && (!php_checkuid(PG(error_log), NULL, CHECKUID_CHECK_FILE_AND_DIR))) { + if (PG(safe_mode) && (!php_checkuid(PG(error_log), NULL, CHECKUID_CHECK_FILE_AND_DIR|CHECKUID_NO_ERRORS))) { return FAILURE; } - if (PG(open_basedir) && php_check_open_basedir(PG(error_log) TSRMLS_CC)) { + if (PG(open_basedir) && php_check_open_basedir_ex(PG(error_log), 0 TSRMLS_CC)) { return FAILURE; } -- 2.50.1