summaryrefslogtreecommitdiff
path: root/main/streams
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2017-04-10 14:49:13 +0800
committerXinchen Hui <laruence@gmail.com>2017-04-10 14:49:13 +0800
commit696bd37e6757d77dc7ed44f3ea6451944ebaba96 (patch)
tree94fcb38264a7103e7fc5892d155006c5306da68b /main/streams
parent4e9f0a80b9748c03e7bae6339ec051b815f5a569 (diff)
parent9398f15efd58899df21f5e0cf032b8881fe71f3f (diff)
downloadphp-git-696bd37e6757d77dc7ed44f3ea6451944ebaba96.tar.gz
Merge branch 'PHP-7.1'
* PHP-7.1: Fixed condition check Fixed condition check another place Conflicts: ext/mcrypt/mcrypt.c
Diffstat (limited to 'main/streams')
-rw-r--r--main/streams/plain_wrapper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index 55b3d4278c..4cd6cca854 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -1310,7 +1310,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;
@@ -1337,11 +1337,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;