diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-04-10 14:47:24 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-04-10 14:47:24 +0800 |
commit | 4bebcb84ad47e687fc3ef3a01b875aa04dfb72d0 (patch) | |
tree | ceffd46146f8a14f0fc69099ec3f829a9a6da8c0 /main/php_ini.c | |
parent | 66411ee62ee8bd5e015c901092014dd9229fca01 (diff) | |
download | php-git-4bebcb84ad47e687fc3ef3a01b875aa04dfb72d0.tar.gz |
Fixed condition check
Diffstat (limited to 'main/php_ini.c')
-rw-r--r-- | main/php_ini.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index 99f11d5f25..79c9d09321 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -804,11 +804,11 @@ PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len) zval *tmp2; char *ptr; -#if PHP_WIN32 +#ifdef PHP_WIN32 char path_bak[MAXPATHLEN]; #endif -#if PHP_WIN32 +#ifdef PHP_WIN32 /* MAX_PATH is \0-terminated, path_len == MAXPATHLEN would overrun path_bak */ if (path_len >= MAXPATHLEN) { #else @@ -817,7 +817,7 @@ PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len) return; } -#if PHP_WIN32 +#ifdef PHP_WIN32 memcpy(path_bak, path, path_len); path_bak[path_len] = 0; TRANSLATE_SLASHES_LOWER(path_bak); |