From: Stanislav Malyshev Date: Fri, 3 Aug 2007 01:30:21 +0000 (+0000) Subject: check correct value X-Git-Tag: php-5.2.4RC2~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df11ce1eceb573287baccad9c9651194d203fa31;p=php check correct value --- diff --git a/main/main.c b/main/main.c index 6dbdf9217d..3951617b8a 100644 --- a/main/main.c +++ b/main/main.c @@ -303,7 +303,7 @@ 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(PG(error_log), "syslog")) { + strcmp(new_value, "syslog")) { if (PG(safe_mode) && (!php_checkuid(new_value, NULL, CHECKUID_CHECK_FILE_AND_DIR))) { return FAILURE; }