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/streams/plain_wrapper.c | |
parent | 66411ee62ee8bd5e015c901092014dd9229fca01 (diff) | |
download | php-git-4bebcb84ad47e687fc3ef3a01b875aa04dfb72d0.tar.gz |
Fixed condition check
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r-- | main/streams/plain_wrapper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index 39c629b458..9643617aef 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -1302,7 +1302,7 @@ static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, i return 0; } -#if PHP_WIN32 +#ifdef PHP_WIN32 if (!php_win32_check_trailing_space(url, (int)strlen(url))) { php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); return 0; @@ -1329,11 +1329,11 @@ static int php_plain_files_metadata(php_stream_wrapper *wrapper, const char *url #endif mode_t mode; int ret = 0; -#if PHP_WIN32 +#ifdef PHP_WIN32 int url_len = (int)strlen(url); #endif -#if PHP_WIN32 +#ifdef PHP_WIN32 if (!php_win32_check_trailing_space(url, url_len)) { php_error_docref1(NULL, url, E_WARNING, "%s", strerror(ENOENT)); return 0; |